Reputation: 913
I am inspecting a Rails response. No http headers have been purposefully set to be returned from the server.
The response includes Cache-Control: max-age=0, private, must-revalidate
and Etag
. The response is a 200 no matter how many times I make the same request or within how short a period of time.
My questions are:
stale?
or
fresh_when
in the response? The Etag is always the same for this
endpoint.Thank you
Upvotes: 2
Views: 407
Reputation: 2483
mini_profiler
, as by default that gem overrides some cache related headers (see here why and how to fix it).config.action_controller.perform_caching = false
.Upvotes: 0