GetSimple Support Forum

Full Version: Refreshing Css by server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
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.