commercialhaskell/stackage-server

Where did the snapshot JSON feed go?

mbakke opened this issue · 4 comments

Previously https://www.stackage.org/lts-15.16 returned a JSON response. Now it does not, even with Accept: application/json. Is there a JSON feed available still?

Looks like it's working to me:

$ curl -i --head -H accept:application/json https://www.stackage.org/lts-15.16
HTTP/2 200 
date: Tue, 09 Jun 2020 05:47:32 GMT
content-type: application/json; charset=utf-8
set-cookie: __cfduid=d0ed47a715ab1ea1657e4e20b1f6418e71591681651; expires=Thu, 09-Jul-20 05:47:31 GMT; path=/; domain=.stackage.org; HttpOnly; SameSite=Lax; Secure
vary: Accept, Accept-Language
x-xss-protection: 1; mode=block
cache-control: public, max-age=43200
strict-transport-security: max-age=15724800; includeSubDomains
cf-cache-status: EXPIRED
cf-request-id: 033937acfc00006a53b090c200000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 5a088ef4cd386a53-LHR

Oh, wait, I see the problem: it's bad caching set up on Cloudflare...

OK, this should be addressed now. Unfortunately it doesn't look like Cloudflare can key the cache based on accept headers, so I've disable caching for these pages.

I can confirm it is back now. Thanks for the quick response @snoyberg !