search

Home  >  Q&A  >  body text

javascript - The server's tomcat has been restarted. Why does the previous one still appear when accessing the updated pure static html file?

I know it’s due to caching, but doesn’t it mean that when the server’s HTML changes, the browser will go to the server to download new HTML?

曾经蜡笔没有小新曾经蜡笔没有小新2732 days ago1528

reply all(5)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-07-07 10:36:56

    The browser caches requests and files. (k-v)
    For example, if you visit: url: http://caiyongji.com/index.html
    Browser cache:
    KEY VALUE
    http://caiyongji.com/index.html index.html

    The above is the understanding in the narrow sense, which actually also includes pictures/cookies, etc...

    reply
    0
  • ringa_lee

    ringa_lee2017-07-07 10:36:56

    If the browser cache clearing access is unsuccessful, you can try deleting the cache files in the work directory in Tomact, then restart and try again.

    reply
    0
  • 扔个三星炸死你

    扔个三星炸死你2017-07-07 10:36:56

    Not necessarily, you need to set Cache-Control: no-cache in the html header

    reply
    0
  • 某草草

    某草草2017-07-07 10:36:56


    Use the browser DevTools to see if the browser cache has been removed

    reply
    0
  • 某草草

    某草草2017-07-07 10:36:56

    1. Server cache
    2. Browser cache

    To clear the browser cache, you can use Ctrl+F5 to force refresh.

    reply
    0
  • Cancelreply