-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't touch HTTP headers where possible #616
Comments
Hello @nate-at-gusto , we are modifying the HTTP header to prevent browser from storing cache only if disable_caching is on. So, I don't find any problems with adding no-store to HTTP header if disable caching is on and feel like its the right thing to do. If you still find that we need to prevent modifying HTTP headers, then can you please explain me the problem we will be facing here if we just let it be? |
rack-mini-profiler/lib/mini_profiler.rb Lines 432 to 435 in 5e42a57
i think there should also be a big fat warning at boot time when
the headers which I MYSELF have set are silently overridden and have no effect. |
Even if disable_caching is on, we still overwrite the applications HTTP cache headers.
This can make HTTP caching difficult to observe in development mode. I understand why we have hacks and workarounds here, but it would be better if we could avoid touching this stuff and let the app do it's thing.
The text was updated successfully, but these errors were encountered: