GithubHelp home page GithubHelp logo

Comments (5)

momelnyk avatar momelnyk commented on June 16, 2024

+1

from rack-mini-profiler.

pusewicz avatar pusewicz commented on June 16, 2024

https://github.com/MiniProfiler/rack-mini-profiler/blob/master/lib/mini_profiler/profiler.rb#L371

This is why. I think this should be only applied to the requests made to fetch mini profiler data.

from rack-mini-profiler.

SamSaffron avatar SamSaffron commented on June 16, 2024

You can't profile stuff properly if its cached, not following why this is such a big issue, only impacts admins anyway.

from rack-mini-profiler.

teoulas avatar teoulas commented on June 16, 2024

If you deploy on Heroku and follow their recommendation to serve assets from your Rails app with a CDN in front of it, then your CDN will never cache any assets, since mini-profiler overwrites the Cache-Control header. This is easily fixed by configuring the skip_paths option to skip any asset paths. However, it took me ages to debug and find out. Maybe it would be a good idea to skip /assets/ by default?

from rack-mini-profiler.

SamSaffron avatar SamSaffron commented on June 16, 2024

sure I am happy to add something like this to the railstie if you want to
give it a shot.

On Fri, Aug 14, 2015 at 2:20 AM, Theodoros Orfanidis <
[email protected]> wrote:

If you deploy on Heroku and follow their recommendation to serve assets
from your Rails app
https://devcenter.heroku.com/articles/rails-4-asset-pipeline#serve-assets
with a CDN in front of it, then your CDN will never cache any assets, since
mini-profiler overwrites the Cache-Control header. This is easily fixed by
configuring the skip_paths option to skip any asset paths. However, it
took me ages to debug and find out. Maybe it would be a good idea to skip
/assets/ by default?


Reply to this email directly or view it on GitHub
#63 (comment)
.

from rack-mini-profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.