Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 16, 2007, 1:50 pm
rate this thread
In my dynamic web-site, I need to force the client to stop caching old
a querystring with the url with each external stylesheet and script
<link type="text/css" rel="stylesheet" href="../images/menu.css?
This is far easier, for me, than coding the web-server to change the
file headers. I just want confirmation that this will work. It seems
obvious that it should but I'm curious as to why I've never come
across this technique before.
Yes, but that's evil. Fortunately, you may be punished by a low google
rank! Crawlers assume that a URI uniquely identifies a resource.
Use the HTTP headers (e.g. set expiration to zero second). If the page is
generated by a script or contains SSI, your server should use the correct
headers by default.
If the page is static, then, why preventing caching? To improve the page
hits statistics? That would be stupid and evil.
What is it for?
It will work as using pseudonyms to commit evil deeds reduces the chance
of being identified.
Because, modifying HTTP headers is much nicer, much more civilized, and
much more natural. It's the direct, obvious, fine, standardized way to
control caching. Your way, is worse than failure:
If you've a question that doesn't belong to Usenet, contact me at
- — Next thread in » HTML Authoring Forum
- » Desperately need help for html to LaTeX conversion
- — Previous thread in » HTML Authoring Forum