layla l00
layla l00

Reputation: 43

how do i make browser display my code changes right away

I am working on a web app and displaying my interfaces using wampserver localhost on chrome browser. When I change the styling of the web pages they don't display on my browser right away, however if I try the same code next day, it works. sometimes I have to use inline css to force styles to appear. and if I try the same codes on JSFiddle the styles show normally. is there a way to make my browser digest code changes faster?

Upvotes: 0

Views: 479

Answers (3)

George Beier
George Beier

Reputation: 256

You could always give your style sheet a unique parameter after the name specifying a version e.g. "mystylesheets.css?ver-2022-07-12.1" The browser will read this as a new style sheet. Works for scripts too. :)

Upvotes: 0

Aashir Azeem
Aashir Azeem

Reputation: 169

Just try hard refresh By Ctrl +Shift+ R it will solve your cache problem.Second is open the same page in incognito tab if it is working there then it surely the cache issue.

Upvotes: 1

Kirtiman Sinha
Kirtiman Sinha

Reputation: 1011

Try refreshing your browser by hitting Ctrl + F5, this will invalidate the cache and force the browser to reload the latest changes.

Upvotes: 1

Related Questions