Comments (5)
+1
from rack-mini-profiler.
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.
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.
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.
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)
- Display EXPLAIN plans
- Rails controller actions should display as ControllerName#action HOT 1
- Choose a code formatter, format the code, and enforce in CI HOT 4
- Validate our responses with Rack::Lint in tests HOT 3
- Fix broken Codecov integration HOT 1
- Infrequent weird output in tests HOT 1
- Intermittent test failure HOT 7
- Clicking "more" in speed badge causes an HTTP request, which doesn't work for HTTPS-only servers
- View previously captured flamegraphs
- Optionally (via config? keyboard shortcut?) show URL or controller action name in the badge itself
- "No snapshots exist" with snapshots enabled
- When `data-vertical-position` is `bottom`, then the popup is not positioned correctly
- always-async-flamegraph mode HOT 1
- Question: Support for tracing forked processes HOT 2
- Display row counts in the UI
- Latest release has an issue ...undefined local variable or method `query_string' HOT 2
- Deprecation warning with Rack >= 3.0.0 - Rack::File is deprecated and will be removed in Rack 3.1
- PRs for dotnet not being handled HOT 1
- "Display name in badge" commit accidentally affects SQL table number alignment
- Compliance with Rack : Spec 3. Lower-case HTTP Headers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rack-mini-profiler.