Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I've setup mod_pagespeed and it seems to work fine, but only when I reload a page. Minutes later the optimization is gone.

Here's a static site where full optimization is only done when you reload the page:

On the first load the CSS files have no .pagespeed. in them. If you reload they do. Any idea why?

Here's my Apache Server Information.

And here's my mod_pagespeed configuration:

ModPagespeed on
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeedFileCachePath            "/var/www/mod_pagespeed/cache/"
ModPagespeedGeneratedFilePrefix      "/var/www/mod_pagespeed/files/"
ModPagespeedEnableFilters rewrite_javascript,rewrite_css
ModPagespeedEnableFilters collapse_whitespace,elide_attributes
ModPagespeedEnableFilters extend_cache,combine_css,move_css_above_scripts,move_css_to_head,inline_css,inline_import_to_link,flatten_css_imports,inline_javascript,outline_javascript,rewrite_style_attributes,rewrite_images,sprite_images
ModPagespeedAvoidRenamingIntrospectiveJavascript on
ModPagespeedMessageBufferSize 100000
share|improve this question

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.