Query String ID for Javascript/Stylesheet Caching
-
Hey Fredrick,
In noticed that in /lib/W3/Plugin/BrowserCache.php you’re generating the $cache_id by creating an MD5 hash of all the options that are set. It’s this variable that’s used to append to javascript and stylesheet calls (e.g.
styles.css?fdb553
). Practically speaking, a user has to change some of the W3TC options in order to have a new query string generated.Have you ever considered creating the $cache_id with an MD5 hash of the included file (e.g.
md5_file($file)
) instead? That way any time the stylesheet or javascript changes, the browser (and/or CDN) is forced to pick up the change?Related question: http://wordpress.org/support/topic/refresh-query-string-for-assets
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Query String ID for Javascript/Stylesheet Caching’ is closed to new replies.