-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can GzipHandler check if .gz file exists only by some paths? #987
Comments
Are you proposing that we match So basically replacing a single |
GzipHandler has configurables for include path and exclude path. And those paths are checked before the *.gz tests. Also the |
Common include and exclude path is not working for my case. I want all my 'allowed' dynamic resources will be gzipped as it now. But only some of them e.g by path |
@btd so answers to my questions are "yes" and "yes" ? I'm not sure a single check to the filesystem is slower than multiple checks on strings. |
I wonder if the entire check for @gregw what you you think? |
@joakime I'm struggling to remember why we actually do need to check for the But now with the interceptor, I don't see there is much need. It will install an interceptor, but it is smart enough to see the content is already compressed. The ability to disable the check already exists, so I'd suggest some benchmarking with and without to see which is best. |
The biggest impact on the check gz test in GzipHandler is when a servlet base resource is a collection of paths to check. |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Pushed commit c008f90 to branch |
+ Flag existing methods / fields as deprecated + Indicate removal in Jetty 10.x Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…xists Issue #987 - remove checkGzExists from GzipHandler entirely
…-disable Issue #987 - move checkGzExists default to false
Closing as fixed. The next
|
I think title is pretty clear, but would like to explain my usecase (i think it is pretty common). We have some asserts (js and css file) that we build using some frontend tools and we can prepare .gz files exactly for them. It makes more sense to add filter by path exactly for this files (or prefixes) to do not check each request for extract IO if such file +.gz exists.
What do you think?
The text was updated successfully, but these errors were encountered: