-
Notifications
You must be signed in to change notification settings - Fork 2
wojodesign/Auto-Cache-Update
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
/* * Use this php function on paths images, css, js, or other media to force a path based on the files modified date * Good for dev sites to ensure Users will not cache newly updated files * (no more telling a client "oh... yeah update your cache... thats why it isn't working") * * Can possibly be used with far future expires headers to improve performance and auto clear when files are updated. * Performance of php has not been tested though. * * * usage: * * <script src="<?c( '/javascripts/myscript.js' )?>" ></script> * * - or - * * <link type="text/css" rel="stylesheet" media="all" href="<?c('/css/global.css')?>" /> * * - or - * * <img src="<?c('/images/myimg.jpg')?>" */
About
Method for modifying asset urls when file is modified.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published