Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Refreshing Css by server
#1
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.
Reply
#2
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
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.
Reply




Users browsing this thread: 1 Guest(s)