CSS changes are not reflected on the site

Whenever we make changes to CSS, it usually takes 24 hours to reflect these changes on my site. I tried to clear the server cache and browser cache, but that doesn't help either. Is there any other way that CSS changes are reflected right after the update?

this happens in all browsers ... when I check it in the browser, I can access my css file in two ways, for example: I store my css in a folder named "Cssfolder", and my css name is 135.css Therefore, when I access the folders C ssfolder / 135.css and c ssfolder / 135.css, one of the paths shows me the last css, while the other one shows me the old css.Notice "c" is capital in one path, while like a little different way.

Thanks.

+5
source share
9 answers

I found this to be a fairly common problem in many of my projects. I would suggest two things ...

  • , , CSS Cachebuster .

  • , Cachebuster, , CSS CSS , ... - ... whatever.css? 12212009035543

+7

, , Live Http Headers Firefox, , . "Expire" (: "If-modified-since" ). , - , , GET "" - .

css URL-, http://example.com/Cssfolder/135.css?983274928374 http://example.com/cssfolder/134.css?08973249827. , .

, : , -/- .

+3

, :

JavaScript CSS ASP.NET

, CSS. , . , , , , .

+2

, . CSS, , , .

, CSS , , , CSS. .

- , , Akamai?

CSS , , ?

: , .

+1

http-, .

, script/css head ( runat = server) , , ​​. , , css/, , .

+1

, -, ?

0

, - Ctrl + F5. :)

0

, , , css , ..

<style type="text/css">
/* your css */
</style>

css, , , , .

, , .

-1

All Articles