javascript - The server's tomcat has been restarted. Why does the previous one still appear when accessing the updated pure static html file?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-07-07 10:34:56
0
5
1514

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?

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(5)
给我你的怀抱

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...

ringa_lee

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.

扔个三星炸死你

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

某草草


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

某草草

1. Server cache
2. Browser cache

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template