Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/src/runtime/utils.ts>asset

The next-gen web framework.
Extremely Popular
Go to Latest
function asset
import { asset } from "https://deno.land/x/fresh@1.5.1/src/runtime/utils.ts";

Create a "locked" asset path. This differs from a plain path in that it is specific to the current version of the application, and as such can be safely served with a very long cache lifetime (1 year).

Parameters

path: string

Returns

string