Giter VIP home page Giter VIP logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024

Original comment by [email protected] on 5 Nov 2010 at 10:54

from incubator-pagespeed-mod.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
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)

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.