-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
last_modified of HEAD and GET are not always in sync #81
Comments
Works fine here. How exactly are you doing your requests? Make sure you send the same Origin header every time. |
Thank you for your quick response. I'm making an app with flutter.
I'll try to explicitly state the origin header. I'll also check if EDIT: Explicitly stating the origin header did not change anything. Also |
I will also make the requests via Postman to make sure it is not a Flutter problem. EDIT: I've found that when the |
In the text below you can see the first entry which shows the headers of the
HEAD
response where thelast_modified
header isWed, 15 Jul 2020 20:08:32 GMT
.The second entry is the
if-modified-since
header for theGET
request.The third entry shows the headers of the
GET
response where thelast_modified
header isWed, 15 Jul 2020 20:07:46 GMT
The url is
https://a.4cdn.org/tv/catalog.json
.Why are these two
last_modified
headers different?1: {connection: keep-alive, last-modified: Wed, 15 Jul 2020 20:08:32 GMT, cache-control: public, must-revalidate, proxy-revalidate, cf-request-id: 03f5b0e4fe0000faa0c4955200000001, date: Wed, 15 Jul 2020 20:08:33 GMT, access-control-allow-origin: http://boards.4chan.org, vary: Accept-Encoding,Origin, Accept-Encoding, content-encoding: gzip, cf-cache-status: EXPIRED, expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct", access-control-max-age: 1728000, content-type: application/json, server: cloudflare, access-control-allow-headers: If-Modified-Since, accept-ranges: bytes, access-control-allow-methods: GET, OPTIONS, content-length: 76148, cf-ray: 5b361db4cdd3faa0-AMS, etag: "5f0f6240-12974", expires: -1}
2: {if-modified-since: Wed, 15 Jul 2020 20:07:46 GMT}
3: {connection: keep-alive, cache-control: public, must-revalidate, proxy-revalidate, last-modified: Wed, 15 Jul 2020 20:07:46 GMT, cf-request-id: 03f5b0e8d20000fa38d4806200000001, date: Wed, 15 Jul 2020 20:08:33 GMT, access-control-allow-origin: http://boards.4chan.org, vary: Accept-Encoding,Origin, Accept-Encoding, age: 35, cf-cache-status: UPDATING, expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct", access-control-max-age: 1728000, server: cloudflare, access-control-allow-headers: If-Modified-Since, access-control-allow-methods: GET, OPTIONS, cf-ray: 5b361dbae89bfa38-AMS, etag: "5f0f6212-12885", expires: -1}
The text was updated successfully, but these errors were encountered: