Comments (6)
Thanks for the report.
It looks like mod_pagespeed is receiving gzipped content from the upstream
output filter, but not realizing that it's gzipped. Is it possible that "wp
total cache" is not properly supplying "Content-encoding: gzip"? Is it
possible for you to check this?
We can also change mod_pagespeed to check the first few incoming bytes for the
'gzip' signature and inflate accordingly, so that you don't get all these error
messages.
However, I think you will get the best performance if you serve unzipped HTML
to mod_pagespeed, which will add the 'deflate' filter (if available in the
binary) to run after mod_pagespeed.
Hope this helps.
Original comment by [email protected]
on 4 Nov 2010 at 3:30
from incubator-pagespeed-mod.
Original comment by [email protected]
on 5 Nov 2010 at 10:54
from incubator-pagespeed-mod.
This is not completely fixed, but in the latest version in SVN we will avoid
trying to parse gzipped HTML by scanning the first few bytes before invoking
the parser.
This will be completely fixed when we actually recognize the stream as gzipped
and gunzip it and optimize it.
As the main symptom is now fixed I'm changing this from 'defect' to
'enhancement'.
Original comment by [email protected]
on 13 Nov 2010 at 12:48
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from incubator-pagespeed-mod.
Subject was: Lots of warnings in log file while handling gziped files
This symptom has been fixed, and the subject adjusted to indicate the open issue
To re-cap: some upstream content generators, such as WP Total Cache, generate
gzipped content but rely on mod_headers, which runs downstream of
mod_pagespeed, to detect the content encoding and add the proper header.
mod_pagespeed now recognizes that the incoming text is not HTML and avoids
spewing syntax warnings, but it will act as a pass-through and will not
currently optimize such content.
Original comment by [email protected]
on 17 Nov 2010 at 4:54
- Changed title: mod_pagespeed does not optimize gzipped content that lacks 'gzip' header
from incubator-pagespeed-mod.
can mod_headers logic to detect compressed content be emulated so that
mod_pagespeed:
- uncompresses
- optimizes
- recompresses
i expect this may be a tad bit cpu-expensive but nonetheless, after the first
round, we wouldn't do it again since we'd have optimized it?
Original comment by [email protected]
on 16 Dec 2010 at 1:26
from incubator-pagespeed-mod.
I think it's time to admit we are not going to do this. We certainly *can* do
it, but it works around a misconfiguration by wasting CPU.
Original comment by [email protected]
on 23 May 2012 at 1:49
- Changed state: WontFix
from incubator-pagespeed-mod.
Related Issues (20)
- Ram
- Using automated install for Nginx 1.21.3 - Nginx does not start after successfull build and install - Ubuntu Impish HOT 11
- bazel build / psol HOT 7
- Images don't get converted to webp in ajax requests HOT 8
- Failure running 'wget https://github.com/apache/incubator-pagespeed-ngx/archive/latest.zip HOT 2
- Is this still maintained? HOT 1
- Changing filenames with webp: does it impact images SEO? HOT 1
- High TTFB with PageSpeed HOT 15
- Failed to install nginx pagespeed module due SSL expired Certificate HOT 1
- sdsdsd
- Prioritize Critical CSS strips leading / from asset urls HOT 1
- Modify remote configurations on the fly HOT 1
- GPG error for APT when accessing Google repositories HOT 1
- How to disable pagespeed query parameters? HOT 1
- Valid link not detected
- Trouble updating pagespeed to support SSL HOT 2
- Admin page 500 error HOT 1
- Will GA4 be supported?
- Como hablar con american airlines
- Few questions
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 incubator-pagespeed-mod.