Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
mod-pagespeed-discuss
Conversations
About
Pagespeed adds no-cache header to unoptimized PNG
22 views
Skip to first unread message
Dwayne D'Souza
unread,
Jan 6, 2016, 3:17:42 AM
1/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mod-pagespeed-discuss
I am using pagespeed 1.9.32.10-7443
When pagespeed encounters a PNG which it cannot optimize it adds the following header:
Cache-Control:
max-age=0, no-cache
This prevents the PNG file from being cached.
How can I stop pagespeed from adding this no-cache to unoptimized PNG files?
Jeff Kaufman
unread,
Jan 6, 2016, 10:19:49 AM
1/6/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mod-pagespeed-discuss
Hmm. It shouldn't be doing that. Here's a corrupt png test image:
http://www.jefftk.com/pngsuite/xlfn0g04.png?PageSpeed=off
When PageSpeed process a page that contains this image, it only cache
extends it, not optimizes:
http://www.jefftk.com/pngsuite/xlfn0g04.png.pagespeed.ce.bAG6yb_SA5.png
Cache-Control: max-age=31536000
When I load the image with IPRO it also doesn't mark it as max-age=0:
http://www.jefftk.com/pngsuite/xlfn0g04.png
Cache-Control: max-age=300
Do you have a link for a png that has this "C-C: 0" behavior in your testing?
(I'm testing with 1.10, so it could be a 1.9 vs 1.10 difference, but I
don't think we changed anything here.)
> --
> You received this message because you are subscribed to the Google Groups
> "mod-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mod-pagespeed-di...@googlegroups.com
.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/mod-pagespeed-discuss/ed0e5598-2cd5-4cf4-b01b-27d894ac5820%40googlegroups.com
.
> For more options, visit
https://groups.google.com/d/optout
.
Reply all
Reply to author
Forward
0 new messages