Skip to content

Add the modified timestamp to asset urls (CSS/JS) for cachebusting.

License

Notifications You must be signed in to change notification settings

carstenjaksch/kirby-cachebust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This plugin adds the modified timestamp of asset files to their respective link tag URLs when using CSS/JS helper functions.

It requires a modification of your .htaccess file to resolve the new asset links:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.(\d+)\.(js|css)$ $1.$3 [L]

About

Add the modified timestamp to asset urls (CSS/JS) for cachebusting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages