I've read the "Too Off-Topic" message and it may look like I'm doing it against the rules but I am writing a program for FreeBSD and am having a problem with requests from a browser on Android. I think it is natural for me to seek help here.
In RFC 9111 (HTTP Caching) I read:
In the header I have:
But the browser doesn't make any request and uses the cached page. I can turn off the tablet and turn it on on the next day and it will use the cached page without contacting the service.
Device - tablet Samsung
OS - Android
Browser - Chrome
I tried:
with the same result. From Chrome and Edge on Windows I get a conditional request as expected. What am I missing?
In RFC 9111 (HTTP Caching) I read:
The no-cache response directive, in its unqualified form (without an argument), indicates that the response MUST NOT be used to satisfy any other request without forwarding it for validation and receiving a successful response; see Section 4.3.
This allows an origin server to prevent a cache from using the response to satisfy a request without contacting it, even by caches that have been configured to send stale responses.
In the header I have:
Code:
Cache-Control: no-cache
But the browser doesn't make any request and uses the cached page. I can turn off the tablet and turn it on on the next day and it will use the cached page without contacting the service.
Device - tablet Samsung
OS - Android
Browser - Chrome
I tried:
Code:
Cache-Control: no-cache, must-revalidate
with the same result. From Chrome and Edge on Windows I get a conditional request as expected. What am I missing?