When coding HTML, browser doesn't always detect changes

前端 未结 6 864
自闭症患者
自闭症患者 2021-01-21 11:11

When I\'m coding HTML and CSS and load the page in the browser to check changes, sometimes it doesn\'t update for a while. This obviously causes problems with incremental change

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-21 11:23

    It is mostly because of browser cache.

    Just a suggestion(You may find it useful, As an addition to other answers):

    If you are on chrome then there is an option to disable cache while the dev toolbar is open. It works for me to ensure there is no caching while I am developing. (I keep my dev toolbar open all the time while developing so it works for me), Here is the screen shot.

    Quote from chrome dev tools (https://developers.google.com/chrome-developer-tools/docs/settings)

    General

    Disable cache Will prevent the caching of resources ONLY for pages which have DevTools open. This will not disable caching if the DevTools are closed

    .

    enter image description here

提交回复
热议问题