Questions tagged [mod-pagespeed]

PageSpeed Module speeds up your site and reduces page load time. This open-source webserver module automatically applies web performance best practices to pages and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

PageSpeed not resizing WebP images

One of my clients wants to switch his images to WebP format, but after some testing I can't get PageSpeed to resize them like it does for other formats. Setup: Rocky Linux 9: Fresh minimal install ...
2 votes
1 answer
7k views

Apache Error - child process [xxx] still did not exit, sending a SIGTERM & ServerContext: 1 leaked_rewrite_drivers on destruction

I have many error log entries called ServerContext: 1 leaked_rewrite_drivers on destruction AND child process 10494 still did not exit, sending a SIGTERM does anyone has any idea on how to fix ...
1 vote
1 answer
473 views

Nginx error logs: what does "pagespeed: rollback gzip, explicit configuration in /etc/nginx/nginx.conf:151" mean, and how can I fix it to use brotli?

I am running an Ubuntu 20.04 LEMP server with the pagespeed and brotli module for Nginx. In my /var/log/nginx/error.log I am seeing the following error: 2023/02/23 07:34:49 [info] 1553667#1553667: [...
0 votes
0 answers
121 views

Nginx Pagespeed Module: What is "Ngx_pagespeed Slow write operation on file /usr/share/nginx/ngx_pagespeed_cache..." in error logs and how to fix?

I am running an Ubuntu 20.04 LEMP server with the pagespeed module for Nginx in a business environment. In my /var/log/nginx/error.log I am seeing the following error: [ngx_pagespeed 1.15.0.0-8811] ...
2 votes
0 answers
162 views

Pagespeed delivers content with gzip header but not gzip content all out of nowhere?

All out of nowhere our website did not longer load CSS. The Chrome browser console showed Error 330 (net::ERR_CONTENT_DECODING_FAILED) With the httpie tool a similar error: $ http "https://www....
6 votes
1 answer
3k views

How to get Mod_pagespeed to output compressed (gzip) css?

Ubuntu 14.04 Apache 2.4.7 php-FPM 5.5.9 Using latest stable Pagespeed Module for Apache (1.9.32.3-4448). I'm in the process of optimizing a WordPress website for speed (bandwidth and rendering). ...
0 votes
0 answers
37 views

PageSpeed combine_javascript How to avoid all scripts (e.g. those with data-* attributes) being combined

I have something like the following: <script src="js/jquery.js"> <script src="js/bootstrap.js"> <script src="js/featured-news.js" data-container-id="...
3 votes
2 answers
6k views

Nginx - enable download of multimedia file instead of streaming?

I am trying to enable multimedia (Mp3 and Mp4) file downloads on my newly setupped nginx/1.17.6 using HTTP2 server but the file started streaming instead of downloading. Here is my nginx.conf file: ...
-1 votes
3 answers
3k views

Unable to access PageSpeed console installed alongside WordPress; getting 503 error and 'LimitInternalRecursion' error

On a CentOS 6 web server with Wordpress installed in /var/www/html/wordpress, and using PageSpeed for caching, I cannot access the /pagespeed_console through the web browser. I only get a 503 error. ...
1 vote
1 answer
4k views

html5 video tag cache

We run a pretty vanilla Centos 7 LAMP server ( Apache 2.4 with mod_pagespeed PHP 5.6, MariaDB 5.5 ), and recently started embedding html5 videos on the background of some pages as per code: <video ...
1 vote
1 answer
9k views

How to resolve ERR_HTTP2_PROTOCOL_ERROR for static files on a first page load (SSL + Pagespeed)?

I have a nginx HTTP2 + ngx_pagespeed + brotli + Wordpress W3 Total Cache setup. On a first page load some static files that were modified by the Pagespeed fail to load, giving a ...
3 votes
1 answer
5k views

How to completely remove Mod Pagespeed from Ubuntu 16.04

I have previously installed mod pagespeed on my apache2 but because it doesn't feels like the way I want it.. website ends up slower than I want it to be, I end up remove it using apt-get autoremove. ...
1 vote
4 answers
10k views

Errors when Compiling Nginx with Pagespeed on CentOS 7

I am trying to compile Nginx with Pagespeed from source and I am having a hard time trying to resolve the not found errors I am seeing when I add the configure settings. This is my configure settings: ...
0 votes
1 answer
92 views

Unable to change options for ngx_pagespeed

I was able to successfully add ngx_pagespeed to my Nginx server at Digital Ocean. I did an automated install and rebuilt Nginx from source with the ngx_pagespeed module per this guide: https://www....
0 votes
1 answer
129 views

How do I start using my custom nginx built from source?

I needed to add ngx_pagespeed module to my nginx server. I followed an automated install as descriped here: https://www.modpagespeed.com/doc/build_ngx_pagespeed_from_source This downloaded and built ...
1 vote
3 answers
2k views

How to configure HTTPS Nginx + Pagespeed + Varnish + Apache?

I currently have the following set-up: Nginx (https) => ssl offloaded => Varnish (http) => Apache (http) I want to add mod_pagespeed or nginx pagespeed in the mix. Any ideas where to add it? Should ...
2 votes
3 answers
8k views

Adding PageSpeed Module to installed nginx

I like to add the Google PageSpeed Module to my nginx webserver on Ubuntu. This link gives a simple overview https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source?hl=de ...
2 votes
2 answers
7k views

Nginx Pagespeed does not Combine or Minify JS or CSS

I am using Mod_Pagespeed Filters for Nginx and the combine and minify javascipt or css is not working. I checked everything and could not find the reason: 1) There are no errors in the error log 2) ...
0 votes
0 answers
62 views

NGINX Occasionally Serving Wrong Block

I am having the strangest problem in the world and it's only been recently... I also think that it may have something to do with the Pagespeed module, but I can't be sure. Anyway when I curl my ...
0 votes
1 answer
1k views

Mod_pagespeed thinks everything is uncacheable on https

I have a pretty stock setup of mod_pagespeed on a stock CentOS6 with stock Apache 2.2. All I do is set "ModPagespeed on" in the VirtualHost. I can see the "-Mod-Pagespeed 1.13.35.2-0" http header....
1 vote
1 answer
3k views

How do I handle apache2 modsecurity2 warnings like Match of "rx ^OPTIONS$" against "REQUEST_METHOD" required?

After upgrade from squeeze to wheezy I get loads of these messages in my apache errorlog when I open a webpage on myserver, (changed to myserver.de here): [Sat Oct 19 01:06:21 2013] [error] [client ...
1 vote
0 answers
63 views

Does mod_pagespeed use Elacticache Cluster Client? Or do we have to manually keep a list of nodes?

I've searched a lot for this, but couldn't find anything. The documentation (https://www.modpagespeed.com/doc/system#memcached) also does not specify anything regarding the same. I'm using ...
2 votes
1 answer
3k views

Nginx cache-control / expire headers will just not work

I've searched everywhere for a working answer to this issue, but none of the answers seem to work. I'm also sorry for the super long post but I just need to ask for help on this. I've tried to be as ...
1 vote
0 answers
403 views

Nginx pagespeed cache error

my nginx server is running with pagespeed but every day I have some problems with cache. The problem is that after some time the scripts loaded in my site returns 404 error. When i look into the cache ...
4 votes
2 answers
4k views

Remove "X-Page-Speed" version from headers in ngx_pagespeed

I have compiled ngx_pagespeed, but forgot to remove the version number. Is there any way to overwrite/delete/hide them? Apache has feature to 'unset' them, but I couldn't find anything similar for ...
0 votes
1 answer
2k views

mod_pagespeed : install earlier version compatible with libc6 2.13 (Debian Wheezy)

Might be a stupid question, but how can I get an _amd64.deb package version of a mod_pagespeed release prior to the current stable/beta versions - i.e. release 1.11.33.0-beta - https://github.com/...
1 vote
1 answer
599 views

mod_pagespeed setup for SSL offloading

On our Apache web server cluster, we have mod_pagespeed setup with memcached and domain sharding to cookieless domain. Our web servers sits behind a loadbalancer with non-sticky sessions, and SSL ...
1 vote
1 answer
426 views

Nginx installed twice while trying to install google pagespeed

I am not an expert in linux/ubuntu.. just know the absolute basics following whatever I've read on stackoverflow. I was trying to install pagespeed (upon nginx) on my EC2 server following the steps ...
-1 votes
1 answer
2k views

How to disable mod_pagespeed without having to reboot server?

I have a centos 7 with mod_pagespeed installed, and whenever I want to disable mod_pagespeed momentarily I go to /root/rpmbuild/BUILD/etc/httpd/conf.d/pagespeed.conf and set below line to off <...
0 votes
1 answer
749 views

Disable PageSpeed on htm/html files

I'm experiencing the issue described here. Some .htm/.html files show up as blank when pagespeed is enabled. Seems to be no solution right now other than disabling Pagespeed processing .htm/.html ...
-1 votes
1 answer
3k views

Apache2 will not start on OpenSUSE after enabling mod_pagespeed

I have a linode VPS, running openSUSE 12.1 (A little outdated, but stable). I have installed the RPMS for mod_pagespeed. mod_pagespeed.conf has "ModPagespeed on". Restarting apache fails after ...
3 votes
3 answers
19k views

apache : disable mod_deflate - [error] an unknown filter

I am running apache with mod_pagespeed on fedora (14), and I am getting the error message: [error] an unknown filter was not added: DEFLATE a lot. I know this is because mod_deflate is not loaded, ...
0 votes
1 answer
1k views

ngx_pagespeed prioritize_critical_css still render-blocking

I'm using ngx_pagespeed to prioritize critcal css, to avoid render-blocking: pagespeed EnableFilters prioritize_critical_css; The CSS in the page gets rewritten. I see inlined CSS in the head and ...
1 vote
0 answers
183 views

I am trying to get centOS pagespeed apache2 module to run with SSL but it doesn't seem to be working

I have installed pagespeed module for httpd on centOS, finally I got it to work with http, but I still haven't managed to get it directing for ssl's, I've added the ssl cert dir path and .pem path, ...
0 votes
2 answers
2k views

cache-control when using mod_cache and mod_pagespeed

I'm using mod_pagespeed with mod_cache. When mod_pagespeed is off and mod_cache is off I see the following header: cache-control:public,max-age=7200,must-revalidate When mod_pagespeed is on and ...
0 votes
1 answer
112 views

Compiling nginx with ngx_pagespeed

I have build nginx with ngx_pagespeed module. Do I still need to keep the original ngx_pagespeed directory? When I use the compiled binary across multiple servers with mod_pagespeed on, I am getting ...
1 vote
1 answer
2k views

Recommended config for pagespeed reverse proxy server with apache

I'd like to setup server to use pagespeed reverse proxy server with apache for several sites which cannot run pagespeed on their origin. It seems I should be able to create a VirtualHost for each site ...
2 votes
2 answers
2k views

Mod_pagespeed, Varnish and Apache cache issues after new code pushes

I have a rather strange issue. In my environment we are running a load balanced cluster of 8 apache servers with a master-master MySQL backend. In front of apache we have Varnish in the cache layer. ...
1 vote
1 answer
8k views

Why isn't Apache reporting HTTPS to PHP?

Problem Apache isn't reporting HTTPS in the $_SERVER variable of PHP. Certificate is correctly configured according to sslcheck.nl and the website redirects every HTTP request to the HTTPS equivalent....
1 vote
0 answers
361 views

mod_pagespeed css shown render blocking?

I've already found this topic concerning my problem and figured out Google is about to discuss a fix of the blocking js. However, could somebody please check out my client's site squarecard.de with ...
0 votes
1 answer
121 views

Nginx Server stopped working after installing ngx-pagespeed mod

I had NGINX running fine on my local machine and tried to install the Google Page Speed module by first uninstalling nginx and following the re-installing from source as Google suggests. Now NGINX ...
3 votes
0 answers
208 views

Optimal server stack for Wordpress [closed]

There are numerous tutorials/articles(some even with benchmarks) on how to create an optimized stack to run Wordpress(or any dynamic site, for that matter). The site doesn't get frequently updated(...
3 votes
1 answer
4k views

How to make varnish 4.0 work with nginx and pagespeed

I am trying to setup Varnish 4 + Nginx with mod_pagespeed. I am using the following config for Varnish 4 as per this document : https://developers.google.com/speed/pagespeed/module/downstream-...
2 votes
0 answers
2k views

CentOS 7: Nginx systemctl hangs on start, why?

I compiled nginx with pagespeed and made the nginx.service file in /usr/lib/systemd/system/nginx.service but when i try to do systemctl start nginx it just hangs, nginx does start but systemctl hangs. ...
1 vote
2 answers
490 views

OPcache breaks phpBB registration

I don't know what happended, but whenever a user tries to register himself on one of my phpBB forums nginx throws 502 Bad gateway, but if I disable OPcache everything works fine. This is the error ...
-3 votes
1 answer
3k views

nginx restart fails: [emerg] directive "pagespeed" is not terminated by ";" in /etc/nginx/vhosts.d/name.d/pagespeed.conf:14 nginx [closed]

attempted to restart nginx to get this: [emerg] directive "pagespeed" is not terminated by ";" in /etc/nginx/vhosts.d/appname.d/pagespeed.conf:14 nginx. pagespeed.conf: pagespeed Domain domain.com ...
0 votes
2 answers
500 views

Mod-Pagespeed dropping headers

I'm using 1.6.29.7-3343 for css and images with Apache 2.2.15 (Unix) on RHEL 6. My pagespeed.conf config is here: https://gist.github.com/jhirbour/a66b0efe58c8d109b90e As part of our PCI our ...
-2 votes
2 answers
1k views

Installing ngx_pagespeed with nginx 1.6.2 (Backport) on debian 7 (wheezy)

I am struggling to install nginx 1.6.2 with module ngx_pagespeed 1.9.32.1-beta Can anyone please help me to install this on my debian 7. Any working tutorial i have tried https://www.digitalocean....
1 vote
1 answer
418 views

mod_pagespeed ModPagespeedLoadFromFile ReGex not working

I have following directive in MPS config: ModPagespeedLoadFromFile "^https?://www.(e|i)zi?aro(v|w)k(y|i).(cz|sk|pl)/static/" "/var/www/eZarovky/production/public/static/" This RegExp should match ...
1 vote
1 answer
711 views

How to upgrade ngx_pagespeed in production server?

I have a LEMP set-up in CentOS 7. I am planning to install the ngx_pagespeed module to it. When I was reading through the docs I came to realise that unlike Apache, I cannot install this module ...