Jump to content

How to make CSS refresh automaticly


pascal_22

Recommended Posts

Hello,

 

Some times i made big change in my CSS, all the time, when i put it online, the cache didn't refresh to the new one CSS file. I always need to refresh manually....

How can i make it to refresh when it changed?

 

I saw on internet to add ?version=1 like:

<link rel='stylesheet' type='text/css' href='CSS/css.css?version=1.1'>

and just increment the version number when i made changes and it will refresh.

 

Is that the good way to do it?

Also, is there a performance issue doing it like this...? I mean, i just did it and Firefox can take 5-10 seconde to load my homepage.....  and chrome seems to load fast.

 

Thanks!

 

Pascal

Link to comment
https://forums.phpfreaks.com/topic/264007-how-to-make-css-refresh-automaticly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.