Replies: 1 comment
-
The Last-Modified header currently is not in use on the gridpoints endpoints, and the if-modified-since requests are being ignored. This info can be found on the Updates tab here: https://www.weather.gov/documentation/services-web-api
|
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
-
I've added this to my API request (https://api.weather.gov//gridpoints/MTR/81,137), but always get back a 200 (ok).
I'm using the date programmatically based on the last update time of a previous api call:
e.g.
If-Modified-Since: Mon, 04 Mar 2024 20:26:53 GMT
In this case, I'm pretty sure it should be returning the 304 (Not Modified) code back, but it is always reporting a 200.
Here's part of the response for context
Anyone run into similar issues? Any other dependencies with using the if-modified-since header? (I found one old issue from 2021, where someone ran into the same issue, but it was never resolved.)
Thanks,
-Shawn
Beta Was this translation helpful? Give feedback.
All reactions