ISP caching CSS
Ivan | Fri, 2005-06-10 22:50I don't know if you experinced this with your ISP, but my ISP is caching CSS pages heavily. Even though I update a CSS file on my server, when I load it, it still shows the old one. No matter how many times I refresh, it will still give the old CSS for several hours. I understand they are trying to save bandwith, but it slows down web development process quite a bit. What can I do about this?
Commenting on this Forum topic is closed.

I understand you are in Bahrain. So I guess your ISP is forcing you to use a Proxy/Caching server. That is not so normal in Europe/US.
First you have to ensure it is the ISP caching and not your browser. The way to do that is if you are using Firefox try opening the safe file in Internet Explorer or on another machine. Browsers do cache a lot of smaal files.
The way to normally flush any Cache is to add parameters to the url
if your url is
http://creativebits.org/node/1614
add a new parameter like
http://creativebits.org/node/1614?gg=Ivan
This make the proxy/caching server belive that its dealing with a dynamic URL and each URL is different so caching will not happend. Each time you change your CSS just access the page with a new parameter.
I hope this is usefull and work - please inform me.
PS. Very impressed with the baheyeldin.com Drupal theme.
Good work
London3
The caching is only for the CSS and image files (which are the most important for me btw). The content of the pages like html pages are not cached.
I called up the ISP and they admitted to 24 hours caching. When I told them it's unacceptable they relied that if you upload your files at 23:55 then it will only take 5 minutes for the refresh to happen. :)
Anyway, the workaround based on your idea is to rename the folder with the images and css every time, so the ISP is "fooled" into thinking that these are new files. In fact they are. :)