The same files are placed in different project directories on the same server.

the same files are placed in different project directories on the same server. One project directory access has https cache, and one is not cached

.

the front-end code is exactly the same, but the background data interface is different
these two project directories are also on the same server, but are placed under two folders, with each domain name pointing to its own folder

.

I would like to ask what caused this question


(from disk cache)

figure 1 requests that are not cached

//General
Request URL: https://trans.go.becent.cc/static/charting_library/static/bundles/library.a20ce7189cee174b6d82.js
Request Method: GET
Status Code: 200 
Remote Address: 127.0.0.1:7070
Referrer Policy: no-referrer-when-downgrade

//Response Headers
accept-ranges: bytes
content-length: 2083227
content-type: application/javascript; charset=utf8
date: Tue, 09 Oct 2018 01:59:22 GMT
etag: "5bbc0523-1fc99b"
last-modified: Tue, 09 Oct 2018 01:32:19 GMT
server: nginx/1.12.2
status: 200

//Request Headers
:authority: trans.go.becent.cc
:method: GET
:path: /static/charting_library/static/bundles/library.a20ce7189cee174b6d82.js
:scheme: https
accept: */*
accept-encoding: gzip, deflate, br
accept-language: zh-CN,zh;q=0.9,de;q=0.8,zh-TW;q=0.7,en;q=0.6,ko;q=0.5,ja;q=0.4
cookie: _ga=GA1.2.1293080355.1537511399; __zlcmid=oVhesFhBP50ZeP; _gid=GA1.2.1063560043.1538962922; _gat=1
referer: https://trans.go.becent.cc/static/charting_library/static/tv-chart.7f86d512c4b494336336.html
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

figure 2 cached requests

//General
Request URL: https://trans.becent.cc/static/charting_library/static/bundles/library.a20ce7189cee174b6d82.js
Request Method: GET
Status Code: 200  (from disk cache)
Remote Address: 127.0.0.1:7070
Referrer Policy: no-referrer-when-downgrade

//Response Headers
accept-ranges: bytes
content-length: 2083227
content-type: application/javascript; charset=utf8
date: Tue, 09 Oct 2018 01:20:30 GMT
etag: "5bbb1772-1fc99b"
last-modified: Mon, 08 Oct 2018 08:38:10 GMT
server: nginx/1.12.2
status: 200

//Request Headers
Provisional headers are shown
Referer: https://trans.becent.cc/static/charting_library/static/tv-chart.7f86d512c4b494336336.html
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

the first time the browser loads the page, there is no cache, and the second time the page is loaded, it is read from the cache.
browser Ctrl+F5 reloads the page, which is not read from the cache. Read it and then refresh it in F5, which is read from the cache.

Menu