Old data if request does not have Accept header #288
-
I noticed I was getting rather old data (5 days) from https://api.weather.gov/gridpoints/LWX/89,86 . When I went to verify in a web browser (firefox) I got current data. After trying a few different things with curl, I happened upon getting current data if I add the Accept header that firefox is adding. Why am I getting old data when I don't specify an Accept header? curl -o out -i -H 'Pragma: akamai-x-cache-on, akamai-x-get-request-id' https://api.weather.gov/gridpoints/LWX/89,86
And now specifying the Accept header curl -o out2 -i -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8' -H 'Pragma: akamai-x-cache-on, akamai-x-get-request-id' https://api.weather.gov/gridpoints/LWX/89,86
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Probably caching, in server or client. |
Beta Was this translation helpful? Give feedback.
-
this has been fine for the past couple of days -- assuming resolved |
Beta Was this translation helpful? Give feedback.
this has been fine for the past couple of days -- assuming resolved