WriteBackCMO
WriteBackCMO

Reputation: 619

how to display modified webpage without clearing cache

My website is hosted by blue host.

Whenever I modify/add text in the HTML and I refresh my webpage, the change would be reflected.

However, when I update the css file, i must clear my chrome brower cache in order to reflect the change.

This is painful as I need to constantly clear my cache. Sometimes tweaking format takes several such clearing.

Is there any way i could avoid clearing the cache but still reflect the css related changes?

Upvotes: 0

Views: 1119

Answers (1)

Arno
Arno

Reputation: 447

You have three options:

-reload the page with cntr+shft+R

-add a dummy Parameter to your css file which you change when you need to refresh the css. E.g. .../yourpath/css.css?v=1 (In case you can use scripts such as PHP, you can use a random value for this parameter which will automatically force the css-reloading on each page refresh)

-open the developer console (F12) and disable the cache on the network tab.

Upvotes: 1

Related Questions