Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/runtime.ts>asset

The next-gen web framework.
Extremely Popular
Go to Latest
function asset
import { asset } from "https://deno.land/x/fresh@1.4.0/runtime.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