Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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: twitterbogen.dk

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

1 Answer 1

Your Answer

 
discard

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.