Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Page speed insights tells me to enable compression for google-maps source. It recommends to use mod_deflate if using Apache. Well, I've put the next snippet code inside the .htaccess file:

<IfModule mod_deflate.c>
<IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
<IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
<IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml

I've enabled mod_deflate (and automatically enables mod_filter), and mod_headers and mod_mime were already enabled.. But Page speed page still tells me to enable compression. What am I doing wrong, or what should I do?

This is a screen shot of page speed error:

Page speed's screen shot

share|improve this question
can you please update question with screenshot from PageSpeed? I don't see any problems with your configuration. I've got similar and Google is reporting green status in my case. – GioMac Sep 4 '13 at 1:56
I need 1 reputation's point to attach images. – Manolo Sep 4 '13 at 9:16
try again... :D – GioMac Sep 4 '13 at 9:17
It's done. Thanks! – Manolo Sep 4 '13 at 9:20
up vote 2 down vote accepted

Those are third party resources, and you have no control over whether they use compression or not (they will not, because doing so would potentially expose private data in a BREACH or CRIME attack). You can safely ignore messages suggesting compression of resources loaded from third party sites, and messages suggesting compression of content served via HTTPS.

share|improve this answer
All right. Thanks! – Manolo Sep 4 '13 at 9:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.