Incorrect Last-Modified date and out-of-date data on Firefox Ajax request #301
Unanswered
stuartthomas25
asked this question in
Q&A
Replies: 1 comment
-
I've also noticed the last-modified and the "If-Modified-Since" header are sometimes unreliable |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
The response sometimes includes future
last-modified
dates and does not provide up-to-date data in Firefox.To Reproduce
I access https://api.weather.gov/gridpoints/AKQ/72,68/forecast in Firefox using an Javascript ajax request. Other browsers (Safari & Chrome), as well as accessing the url directly, yield correct data.
I can reproduce this bug on multiple devices and a Firefox derivative browser, Palemoon. Furthermore, this is independent of local caches since it appears after all caches are cleared.
Here are the request and response headers:
Request:
Response:
You can see above how the
last-modified
field is in the future.Furthermore, the JSON response has an out-of-date list of periods, as shown by this snippet of the response:
This demonstrates that the API is serving data that should end at
2020-08-17T18:00:00-04:00
in a request that was madeTue, 18 Aug 2020 06:11:35 GMT
.Beta Was this translation helpful? Give feedback.
All reactions