You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to an article written by Sergey Chernyshev on Performance Calendar, he argued that using query string may not be the best way for cache busting, quote what he said:
The reason for this is that some intermediate proxy and potentially some other clients might not cache assets that have query strings because of some basic heuristics that flag such requests calls for dynamic data.
(http://calendar.perfplanet.com/2010/easy-cache-headers/)
So I am thinking, can we do something like configuring the htaccess file to use server technique to do the cache busting? I know one concern maybe that not everyone knows how to configure server. It will look like something below in the htaccess file:
Cache busting js and css files:
RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L]
ideas or thoughts?
The text was updated successfully, but these errors were encountered:
The query string is definitely not best. Squid proxy has issues with it.
But I don't want anything in the HTML that absolutely relies on the htaccess working and in place. So for now we go with the less-great query string cachebust.
The build script rectifies all these issues and does this in the optimal way.
According to an article written by Sergey Chernyshev on Performance Calendar, he argued that using query string may not be the best way for cache busting, quote what he said:
The reason for this is that some intermediate proxy and potentially some other clients might not cache assets that have query strings because of some basic heuristics that flag such requests calls for dynamic data.
(http://calendar.perfplanet.com/2010/easy-cache-headers/)
So I am thinking, can we do something like configuring the htaccess file to use server technique to do the cache busting? I know one concern maybe that not everyone knows how to configure server. It will look like something below in the htaccess file:
Cache busting js and css files:
ideas or thoughts?
The text was updated successfully, but these errors were encountered: