You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
These only happen if the initially-cached request has options.json = true.
If subsequent requests want json output (options.json = true), then we try to JSON.parse() the cached content, which is already json, which throws. This causes the cache lookup to fail, so we go get from source again.
If subsequent requests don't want json output (options.json = false), then we successfully serve from the cache, but the cached content is json, rather than the expected string content.
These only happen if the initially-cached request has
options.json = true
.options.json = true
), then we try to JSON.parse() the cached content, which is already json, which throws. This causes the cache lookup to fail, so we go get from source again.options.json = false
), then we successfully serve from the cache, but the cached content is json, rather than the expected string content.I've written some tests demonstrating these behaviours.
The text was updated successfully, but these errors were encountered: