(-raw-add-fingerprint path)
(-raw-add-fingerprint path prefix)
Returns a path with the resources fingerprint (checksum) in the filename. Using fingerprinted paths prevents the browser from using previously cached versions of your assets.
(add-fingerprint "/stylesheets/my.css") ;=> /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css
The path must exist in the classpath.
The prefix param defaults to "public". This is added to the beginning of the path when loaded form the class path. e.g. If the asset /stylesheets/my.css is being loaded, it likely exists inside /public/stylesheets/my.css.
Returns a path with the resources fingerprint (checksum) in the filename. Using fingerprinted paths prevents the browser from using previously cached versions of your assets. (add-fingerprint "/stylesheets/my.css") ;=> /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css The path must exist in the classpath. The prefix param defaults to "public". This is added to the beginning of the path when loaded form the class path. e.g. If the asset /stylesheets/my.css is being loaded, it likely exists inside /public/stylesheets/my.css.
(add-fingerprint-to-path hash file-path)
(remove-fingerprint path)
(resolve-fingerprint-in request)
(wrap-asset-fingerprint handler)
Middleware the looks for fingerprinted asset requests and removes the fingerprints.
e.g. requests for /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css turn into requests for /stylesheets/my.css
Middleware the looks for fingerprinted asset requests and removes the fingerprints. e.g. requests for /stylesheets/my.fp084994104d0fdf138f53f0e4d94a5486.css turn into requests for /stylesheets/my.css
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close