As of May 31, 2023, we have updated our Code of Conduct.

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
64 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] ...
DanRan's user avatar
  • 113
2 votes
1 answer
88 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: [...
DanRan's user avatar
  • 113
2 votes
0 answers
107 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....
Alex's user avatar
  • 636
0 votes
0 answers
508 views

URL returns 403 on the browser but works fine on cURL

I have a strange case that I need help with in order to debug. I have an asset served by Nginx with PageSpeed, and this asset is behind a CDN, BunnyCDN in our case. In the browser, I get HTTP 403 when ...
Rodrigo's user avatar
  • 35
0 votes
0 answers
32 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="...
Martyn's user avatar
  • 91
1 vote
1 answer
6k 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 ...
user64675's user avatar
3 votes
2 answers
5k 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: ...
user343272's user avatar
0 votes
1 answer
87 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....
geochanto's user avatar
  • 157
0 votes
1 answer
81 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 ...
geochanto's user avatar
  • 157
0 votes
0 answers
59 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 ...
Suntzu's user avatar
  • 11
0 votes
1 answer
960 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....
Shovas's user avatar
  • 253
1 vote
0 answers
61 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 ...
user8080302's user avatar
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 ...
Grady's user avatar
  • 31
1 vote
0 answers
364 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 ...
MarBer's user avatar
  • 111
1 vote
1 answer
574 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 ...
Phliplip's user avatar
  • 541
1 vote
1 answer
408 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 ...
Laughing_buddha's user avatar
-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 <...
Carl's user avatar
  • 1
0 votes
1 answer
665 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 ...
bbeckford's user avatar
1 vote
0 answers
169 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, ...
ireply's user avatar
  • 11
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 ...
ktusznio's user avatar
  • 111
2 votes
1 answer
4k 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. ...
Someone Special's user avatar
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 ...
DD.'s user avatar
  • 3,104
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/...
dubesor's user avatar
  • 111
1 vote
1 answer
3k 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 ...
Rafael Rotelok's user avatar
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 ...
Milan Simek's user avatar
0 votes
1 answer
106 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 ...
Aman's user avatar
  • 183
-1 votes
1 answer
7k 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....
Waaghals's user avatar
1 vote
0 answers
357 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 ...
Niklas Beinghaus's user avatar
0 votes
1 answer
114 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 ...
Holly's user avatar
  • 997
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 ...
Quinn Comendant's user avatar
3 votes
0 answers
204 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(...
Adrian Todorov's user avatar
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). ...
pixeline's user avatar
  • 658
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. ...
therealssj's user avatar
1 vote
2 answers
471 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 ...
Octfx's user avatar
  • 283
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) ...
Neel's user avatar
  • 1,441
-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 ...
vulgarbulgar's user avatar
0 votes
2 answers
490 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 ...
Johnny Octothorpe's user avatar
-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....
paul Watson's user avatar
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-...
Pyth Phytho's user avatar
1 vote
4 answers
9k 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: ...
Neel's user avatar
  • 1,441
1 vote
1 answer
707 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 ...
Neel's user avatar
  • 1,441
1 vote
0 answers
224 views

Django wsgi and mod_pagespeed not working

I installed mod_pagespeed on my server and it's working as far as the page header is concerned: X-Mod-Pagespeed:1.7.30.5-3847 The problem is that it's doing nothing else. No whitespace or comment ...
Designer023's user avatar
0 votes
1 answer
434 views

Can I use the Nginx PageSpeed module together with SSI?

Is it possible to use the Nginx PageSpeed module together with SSI? I can't get SSI up and running when PageSpeed is enabled. But as soon as I disable PageSpeed, SSI works again: location ~ .+\....
czerasz's user avatar
  • 567
2 votes
3 answers
7k 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 ...
paskster's user avatar
  • 301
0 votes
1 answer
383 views

pagespeed cleanup performance issue

I configured pagespeed to cache js and css files to improve server performance. But sometimes server loads and performance lag is quite visible. So want to tune pagespeed. I increased pagespeed's ...
user218187's user avatar
1 vote
1 answer
414 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 ...
Ivan's user avatar
  • 195
0 votes
1 answer
1k views

mod_pagespeed not inserting image dimensions

I've added the following: ModPagespeed on ModPagespeedEnableFilters insert_image_dimensions However, my image still appears as follows: <img alt="WordPress" src="wp-admin/images/wordpress-logo....
DD.'s user avatar
  • 3,104
2 votes
1 answer
2k views

mod_pagespeed own js and css render blocking

My mod_pagespeed gives a lower score because it's own js and css are render blocking. Given that the tool is designed to speed up, not slow down, I don't think this is desired behavior by design. Has ...
Vlad's user avatar
  • 61
-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. ...
Twitch's user avatar
  • 101
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 ...
mahen3d's user avatar
  • 4,252