Problem z style.css

Website URL

Kalkulator Przelicznik (000.pe)

Po dodaniu plików do htdocs (style.css) nie wyświela mi aktualnych stylów jakie są napisane w pliku.

this is an English speaking forum, in future please post your question in English

thank you.

google translated
After adding files to htdocs (style.css) it does not display the current styles that are written in the file.

The issue is with the browser cache and is very difficult to clear cached css files

A solution is to add a version number to your css file so that every time you make changes you rename the file like style001.css style002.css etc etc

This way the browser will be forced to load the new css file

5 Likes

Not necessarily, because the file that is calling the CSS file could also be cached, so the updated file name would not be seen unless you cleared the cache anyways.

5 Likes

yes you will still have to clear the browser cache of that page for it to pick up that there is a new css file name and I forgot to say that , sorry and thanks for posting about this :+1:

my experience has been that clearing the browser cache clears everything but css files so changing the filename is a good thing

I even posted a solution for this a while back when it was driving me crazy

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.