Reputation: 1172
I have a whole lot of css changes for my site. So I have used versioning to load the updated css files. But from some article I came to know that when some browsers like IE see a question mark they always hit the server to get the file but does not use the cache?
Is this true?
Upvotes: 1
Views: 235
Reputation: 324750
It varies. The main concern is not IE, but rather proxy servers between you and the client.
Personally, I use links of the form //example.com/t=12345/css/main.css
That t=12345
is the file's modification time, inserted by my "static resource management" class.
Then, a simple .htaccess
rewrite rule strips that part out, leaving just /css/main.css
as the target file.
From the browser's perspective, it's just a weirdly named folder, and it will cache according to the headers it receives. This will work for proxy servers too. Anything that can cache, will cache.
Upvotes: 1