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
23 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 ...
user avatar
  • 11
0 votes
0 answers
28 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="...
user avatar
  • 71
0 votes
0 answers
13 views

Cannot increase ModPagespeedFetcherTimeoutMs

Can't seem to be making changes to the pagespeed conf on Apache/2.4.41 (Ubuntu). Trying to increase the fetch timeout but it doesn't change. I tried turning the mod off as well but it was still ...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
2 votes
2 answers
3k 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: ...
user avatar
0 votes
1 answer
85 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....
user avatar
  • 157
0 votes
1 answer
70 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 ...
user avatar
  • 157
0 votes
0 answers
58 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 ...
user avatar
  • 11
0 votes
1 answer
854 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....
user avatar
  • 153
1 vote
0 answers
57 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 ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 31
1 vote
0 answers
308 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 ...
user avatar
  • 111
1 vote
1 answer
526 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 ...
user avatar
  • 531
1 vote
1 answer
367 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 ...
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 <...
user avatar
  • 1
0 votes
1 answer
566 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 ...
user avatar
1 vote
0 answers
146 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, ...
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 ...
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. ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 2,984
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/...
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 ...
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 ...
user avatar
0 votes
1 answer
104 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 ...
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....
user avatar
1 vote
0 answers
343 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 ...
user avatar
0 votes
1 answer
111 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 ...
user avatar
  • 897
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 ...
user avatar
3 votes
0 answers
201 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(...
user avatar
6 votes
1 answer
2k 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). ...
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. ...
user avatar
  • 131
1 vote
2 answers
443 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 ...
user avatar
  • 273
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) ...
user avatar
  • 1,421
-3 votes
1 answer
2k 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 ...
user avatar
0 votes
2 answers
473 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 ...
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....
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-...
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: ...
user avatar
  • 1,421
1 vote
1 answer
705 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 ...
user avatar
  • 1,421
1 vote
0 answers
221 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 ...
user avatar
0 votes
1 answer
422 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 ~ .+\....
user avatar
  • 547
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 ...
user avatar
  • 301
0 votes
1 answer
378 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 ...
user avatar
1 vote
1 answer
405 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 ...
user avatar
  • 175
0 votes
1 answer
998 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....
user avatar
  • 2,984
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 ...
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. ...
user avatar
  • 101
1 vote
1 answer
6k 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 ...
user avatar
  • 3,875
-3 votes
1 answer
810 views

What does mod_pagespeed exactly do? [closed]

I happen to see in my apache log files that my server is getting hit by a specific IP address. and all the pages that are requested from this IP address has an entry in the apache file as xxx.xxx....
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 2,262