Questions tagged [mod-pagespeed]

The mod_pagespeed modules are open-source server modules that optimize your site automatically.

mod_pagespeed is an open-source module written by Google that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving content from the server.

mod_pagespeed provides a pre-built binary package for HTTP server and a module for HTTP server.

mod_pagespeed includes several filter that optimize JavaScript, HTML and CSS stylesheets. It also includes filters for optimizing JPEG and PNG images. The filters are based on a set of best practices known to enhance web page performance. Webmasters who set up mod_pagespeed in addition to configuring proper caching and compression on their Apache distribution should expect to see an improvement in the loading time of the pages on their websites.

250 questions
3
votes
1 answer

What are the round-trips google mentions in the pagespeed insights tool?

Google says it had to make 5 network round trips and that only 18% of the content above the fold could be viewed after the first 3 round trips. How can I improve this? Thank you.
DomeWTF
  • 2,342
  • 4
  • 33
  • 46
3
votes
1 answer

Mod_PageSpeed issue with EC2 and SilverStripe

Not a large amount of information online in regards to this setup. So as far as I know Mod_PageSpeed is setup and working (kind of). I can access /pagespeed_admin and when I check the headers the PageSpeed version is displayed. The issue I get when…
helenclarko
  • 269
  • 1
  • 12
3
votes
1 answer

serf failing, sending https request to port 80 instead of 443, why?

When requesting via https it looks like serf is funnelling the request via port 80 instead of 443? [Mon Jan 16 10:25:48.007386 2017] [error] [pid 350] [mod_pagespeed 1.11.33.4-0 @350] Serf status 120171(APR does not understand this error code)…
dandan
  • 1,016
  • 8
  • 16
3
votes
1 answer

Rewrite urls for cdn on http and https

We are running mod-pagespeed on serveral apache nodes behind a varnish wich sits behind an ngnix which handles https. So all request arrive apache as http but with an extra x-proto header. PageSpeed works fine on http and rewrites urls to the…
Andresch Serj
  • 35,217
  • 15
  • 59
  • 101
3
votes
1 answer

How to Disable mod_pagespeed on a specific type of URLs

i've mod_pagespeed installed on my nginx server and i love it. Recently, i installed AMP posts in my website and all permalink now have the /amp/ at the end of the URL. The problem is that mod_pagespeed (at this time) doesn't support AMP tag, so the…
wrls
  • 85
  • 2
  • 11
3
votes
1 answer

Angular2 error after deployment on AWS server ""Only void and foreign elements can be self closed "head" ("[ERROR ->]"

After having finished and tested an Angular2 application on my local machine, I decided to move it to an AWS cloud server with Apache. I cloned the sw from git but, as soon as I launched the app, I got an error on the browser console…
Picci
  • 16,775
  • 13
  • 70
  • 113
3
votes
1 answer

Pagespeed rewrite_javascript everything except 1 single js file

I have a small issue with rewrite_javascript module which minify JS file. This function is awesome since pagespeed also generate a new URL for everyfile if we purge the cache, thus enable us to use Cloudfront cache easily with pagespeed's…
DucDigital
  • 4,580
  • 9
  • 49
  • 97
3
votes
1 answer

Using mod_pagespeed with Cloudfront and S3

We have a bunch of images that are loaded on Amazon S3. Right now we directly call these images with the S3 URL. I would like to install Cloudfront CDN and mod_pagespeed to resize these images and optimize them. The web server itself isn't hosted on…
3
votes
0 answers

How to setup modpagespeed working with https CDN

My website: http://www.bestpricevn.com get css/js/image from a CDN: http://mycdn.cloudfront.net (this CDN will go back to http://www.bestpricevn.com to get the original resources) My setting: ModPagespeedDomain `mycdn.cloudfront.net` …
3
votes
1 answer

Does Google's mod_pagespeed provide auto versioning of CSS and js files?

https://developers.google.com/speed/pagespeed/module/ This link doesn't talk specifically about CSS and js auto versioning but I read somewhere that this module can be used for auto versioning of CSS and js files. Would like to confirm about…
manohar_tn
  • 101
  • 1
  • 10
3
votes
0 answers

How do I make pagespeed follow htaccess directives?

According to the manual, you can manipulate how mod-pagespeed works using .htaccess files: https://developers.google.com/speed/pagespeed/module/configuration#htaccess However, having already mod-pagespeed correctly working with Apache, it does not…
Javi
  • 353
  • 2
  • 11
3
votes
1 answer

HTML attributes to exclude mod_pagespeed

Is there any HTML attributes available to exclude files that do not use mod_pagespeed?. My requirements is like below < script src="demo.js" type="text/javascript" pagespeed="no"> Thanks
Jaya Prakash
  • 93
  • 4
  • 11
3
votes
1 answer

Google Analytics Tracking code minified

I've setup a new property (universal, not classic) and I've copied and pasted the tracking code directly before the on my pages. When I view the source, I see the tracking code BUT modPagespeed is automatically minifying the inline JS. If I go to…
Beka
  • 41
  • 3
3
votes
1 answer

mod_pagespeed conditional css

I am using rewrite_css config and found a problem. Conditional CSS files inside HTML comments are ignored by mod_pagespeed. However, this style does…
KateYoak
  • 1,591
  • 3
  • 18
  • 34
3
votes
1 answer

Very many "fetch timed out" errors in apache log

I've installed mod_pagespeed with the config included below. While it works well, I am getting a lot of output in my /var/log/apache2/error.log file that I'm not sure how to resolve. Config ModPagespeed on AddOutputFilterByType…
Michael Robinson
  • 29,278
  • 12
  • 104
  • 130
1 2
3
16 17