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
6
votes
1 answer

mod_pagespeed: Combine Javascript, CSS not working with SSL

I am using mod_pagespeed. When using http, combine js, css and rewrite js and css work fine. However, when I switch to https, none of these four functions work. The apache error log is empty about this. This is the relevant conf…
Nish
  • 130
  • 1
  • 2
  • 6
5
votes
1 answer

mod_pagespeed and java app servers

Can one use mod_pagespeed with tomcat application server? directly or indirectly? Am i correct in stating that you can use mod_pagespeed with tomcat if you use apache webserver as a proxy to tomcat webserver? (does this work with mod_jk?)
netbrain
  • 9,194
  • 6
  • 42
  • 68
5
votes
2 answers

What does mod_pagespeed beacon do?

What is mod_pagespeed beacon? I am getting a 404 error on Akamai on this. I want to know why the module is being used. I would be able to disable it if I knew what it was being used for.
user3309418
  • 61
  • 2
  • 4
4
votes
1 answer

Mod_pagespeed is enabled. FileCachePath must not be empty:

I've tried to restrain myself from asking too many questions on Stack Overflow, but I have been trying to get mod_pagespeed enabled on my Apache2 server for a couple days now, and am ready to start pulling out my hair hah. I installed mod_pagespeed,…
TJB
  • 3,706
  • 9
  • 51
  • 102
4
votes
0 answers

Adblockers are blocking mod_pagespeed_beacon, Can I prevent this on the server side (Apache)?

I would like to prevent Adblockers from blocking mod_pagespeed_beacon on the server side (Apache) since mod_pagespeed is not used for advertisements.. Is this possible? If so, How? Note: I've already informed uBlock Origin about this issue and they…
Persson
  • 422
  • 4
  • 21
4
votes
3 answers

mod_rewrite mod_pagespeed RewriteCond

I have the following in my .htaccess file: # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .*…
Darryl Hein
  • 142,451
  • 95
  • 218
  • 261
4
votes
1 answer

Why i'm getting a 404 for PNG in mod_pagespeed

I have a small problem with the mod_pagespeed module in Wordpress on Apache server. I'm getting a 404 related only to PNG images, but not always, not for all and not even for the same images. Automatically, sometimes you see, sometimes not…
wrls
  • 85
  • 2
  • 11
4
votes
1 answer

mod_pagespeed adds tag to responses

I have a simple PHP app with mod_pagespeed in Apache 2.4. Looking at the PageSpeed module documentation (https://developers.google.com/speed/pagespeed/module/filter-head-add) it says this adds a tag to a document if it encounters a body…
Mariano
  • 1,023
  • 1
  • 11
  • 19
4
votes
1 answer

Pagespeed and cache-control in response

I have enabled pagespeed module and find that for some resources (image, js and css) that are re-written by pagespeed the cache is set to the default 5 minutes. Few other resources (image, js and css) re-written by pagespeed has Cache-Control:…
user3853029
  • 61
  • 1
  • 3
4
votes
2 answers

Google PageSpeed not updating cache

I have google's pagespeed installed with nginx server installed following here. I need to flush/delete the previous cached content but could not find a solution. On pagespeed site its mentioned to use this command: touch…
user969068
  • 2,818
  • 5
  • 33
  • 64
3
votes
1 answer

How do Minify, mod_pagespeed... handle merging javascript files

Say that on page1.html I need mootools.js and main.js... I guess that these tools should generate one minified js file (say min1.js). Then on page2.html I need mootools.js, main.js AND page2.js... Do those tools serve min1.js (already cached by…
Flavien
  • 73
  • 7
3
votes
1 answer

PageSpeed Module messes up the scale of images

Pagespeed module updates this image to resize it but in the process it messes up the scale. Is there a way to keep the scale and resize it? (Similar to cropping the image) The CSS on the image is: height: 100%; width: 768px; object-fit: cover;
Shubh Sheth
  • 411
  • 5
  • 15
3
votes
0 answers

How to disable cache in pagespeed module?

It is possible to disable cache in mod_pagespeed and just use the rewrite_images,resize_images filters?
hd.
  • 17,596
  • 46
  • 115
  • 165
3
votes
2 answers

Nginx url rewrite WordPress and ModPageSpeed conflict

I'm using Plesk with nginx + ModPagespeed + WordPress To lazy load images there is a placeholder image which should be loaded form this kind of URL https://example.com/pagespeed_static/1.JiBnMqyl6S.gif it's dynamic, there is not actual folder so…
KeySee
  • 760
  • 1
  • 12
  • 26
3
votes
0 answers

Pagespeed Not optimising part of website images

I have nginx 1.16 with pagespeed 1.13.35.2-0. the issue is that pagepseed able to optimise images in main page but not other pages. with no error or suspicious logs. where any images exist under media/catalog/product/cache are not being…
Eng7
  • 632
  • 1
  • 8
  • 25
1
2
3
16 17