Appearance
Fingerprint Method
Definition
- Namespace:
JASE.IO - Assembly:
JASE.dll
string Fingerprint(string path, bool useMinified = null)
csharp
string Fingerprint(string path, bool useMinified = null)Adds a virtual cache-busting fingerprint to a static file path.
Parameters
| Name | Description |
|---|---|
path | The application-relative or rooted file path (for example, "~/content/site.css" or "content/site.css"). |
useMinified | If and not in debug mode, attempts to resolve a .min or .prod variant of the file before fingerprinting. |
Returns
A versioned path that includes a /v-######### segment derived from the file’s last write time ticks, suitable for use in HTML references to enable cache busting.
Remarks
The result is cached using an internal cache keyed by the original path. Subsequent calls for the same path reuse the cached value until the application resets.