Cache issue

146 views
Skip to first unread message

Samuele Ghilardi

unread,
Feb 19, 2023, 6:49:41 PM2/19/23
to Chromium-discuss
Hello
I'm facing a strange behaviour with the cache: when I browse  my site hosted in a fast environment (my local datacenter) the cache is correctly managed; but when I browse the same site hosted in a remote system with high latency, the cache is not used and all files are always downloaded.
The site configuration is identical and all file are small, less than 50 Kb.
The site is HTTP/2. 
Checking the headers, the tags are identical.
I tested with Chrome and Edge with the same issue.
Firefox uses correctly the cache. 

Did you ever faced same issue?

Thank you
Regards
Samuele


Example of call:
Request
Request URL: https://_removed_:8443/app/lib/custom/ABCcomponents/form/ABCMatrix.js?_dc=8.6.0.110
Request Method: GET
Status Code: 200
Remote Address: _removed_:8443
Referrer Policy: no-referrer

Response Headers
accept-ranges: bytes
content-encoding: gzip
content-length: 4681
content-security-policy: script-src 'self' 'unsafe-eval' 'unsafe-inline'; object-src 'self'
content-type: text/javascript
date: Fri, 17 Feb 2023 11:44:54 GMT
last-modified: Wed, 28 Sep 2022 06:03:44 GMT
referrer-policy: no-referrer
server: My-Server
strict-transport-security: max-age=31536000; includeSubDomains;
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-powered-by: My-Web-Tier
x-robots-tag: none
x-xss-protection: 1; mode=block

Request Headers
:authority: _removed_:8443
:method: GET
:path: /app/lib/custom/ABCcomponents/form/ABCMatrix.js?_dc=8.6.0.110
:scheme: https
accept: */*
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9,it;q=0.8
cookie: JSESSIONID=qlP-jTCoAmgmVigaKAwyVAxrzAoLTKeWDqEDH-ZV.app-app-test
sec-ch-ua: "Chromium";v="110", "Not A(Brand";v="24", "Microsoft Edge";v="110"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: script
sec-fetch-mode: no-cors
sec-fetch-site: same-origin
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.46


Jon Perryman

unread,
Feb 19, 2023, 8:04:44 PM2/19/23
to samuele....@gmail.com, Chromium-discuss
The most likely cause of your cache problem is the server, not the browser.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Samuele Ghilardi

unread,
Feb 20, 2023, 3:22:59 AM2/20/23
to Chromium-discuss, Jon Perryman, Chromium-discuss, samuele....@gmail.com
Generally I agree with you, but in this case I can exclude differences in servers configurations.
My doubt is if the latency could impact in the "decision" of the browser to use or not the disk cache (the memory cache is always used). 

Thanks

Samuele Ghilardi

unread,
Feb 20, 2023, 10:15:40 AM2/20/23
to Chromium-discuss, Samuele Ghilardi, Chromium-discuss
Hello
After some tests, it seems that the cache is not used when the HTTPS (HTTP/2) is using a self-signed SSL certificate.

Thanks
Reply all
Reply to author
Forward
0 new messages