GetSimple Support Forum
Refreshing Css by server - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Refreshing Css by server (/showthread.php?tid=589)



Refreshing Css by server - tomaszpio - 2010-03-27

I'm writting my own theme for GetsSimple. When I change my css I can't result in the browser, I try to refresh using F5 by it doesn't work. I can see the changes but after about 2 minutes.


Refreshing Css by server - Zegnåt - 2010-03-27

Clear your browser cache by hand or check the HTTP response send by the server along with the CSS file. It sounds like it is set to be cached for a long period, which is normally exactly how you want it as you’re not going to be updating the CSS every day on a deployed website.


Refreshing Css by server - tomaszpio - 2010-03-28

Zegnåt Wrote:Clear your browser cache by hand or check the HTTP response send by the server along with the CSS file. It sounds like it is set to be cached for a long period, which is normally exactly how you want it as you’re not going to be updating the CSS every day on a deployed website.

Thanks this works. I set
<FilesMatch "\.(css|js)$">
Header set Cache-Control "no-cache"
</FilesMatch>
in htaccess. I will leave it for development time.