-
Fix flash errors in performance bar for cached responses · d77db0adSean McGivern authored
When a request contains an ETag value in its If-None-Match header, the backend may send a request ID (from Rack) that does not correspond to a value in Peek's Redis cache (because we aborted the Rails processing in our ETag middleware). Because a cached response (304) has to replace the headers with those from the previous 200 - https://tools.ietf.org/html/rfc7234#section-4.3.4 - we add a custom header that will only be present in cache hits, that can tell the frontend to ignore these.
d77db0ad
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
middleware.rb | Loading commit data... | |
router.rb | Loading commit data... | |
store.rb | Loading commit data... |