Shruti
Shruti

Reputation: 721

Google chrome not updating the webpage

Google chrome is not updating the new css in website. It requires to clear cache everytime. My real concern is we cannot expect visitors to clear cache everytime while visiting the website. Can anyone suggest some solution that somehow chrome will load the updated file whenever a change is made file is uploaded.

Upvotes: 0

Views: 3713

Answers (2)

Sumit Mishra
Sumit Mishra

Reputation: 33

Try refreshing the web page with Ctrl

Upvotes: 1

Gerard
Gerard

Reputation: 15786

Assuming you have an external CSS file, use the following:

<link href="demo.css?v=1" rel="stylesheet" type="text/css">

Adding ?v=1 will make sure the file will be downloaded. When you have a new version of your CSS file, increase the number (v=2, v=3 and so on).

Upvotes: 0

Related Questions