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
0 answers

Require.js vs mod pagespeed

I am planning a new website with several assets (js/css). I want to combine those assets to one js file and one css file. I am not sure if using server side technic, such as pagespeed (which has several more usages and does not require client side…
Yaniv Efraim
  • 6,633
  • 7
  • 53
  • 96
3
votes
4 answers

Does an apache restart reliably clear pagespeed cache?

I'm currently developing a website that's getting fairly frequent javascript updates and have just started using mod_pagespeed in an effort to ensure that customers will always have the latest code. The docs tell me doing this will clear my…
Ennael
  • 861
  • 3
  • 14
  • 31
3
votes
2 answers

Is there a way to lazyload images before they become visible in the viewport using mod_pagespeed?

I configured my .htaccess to lazyload images using mod_pagespeed, but I don't want to affect the user experience by showing an image that is not loaded yet. Is there a way to set a configuration and lazyload images some pixels before they become…
Zeno Rocha
  • 3,226
  • 1
  • 23
  • 27
3
votes
1 answer

How do I use mod_pagespeed to rewrite HTML to serve images off my CDN?

I simply want to rewrite pages that contain this: To be this: I feel like this should be fairly simple, but I've spent three hours…
jamieb
  • 9,847
  • 14
  • 48
  • 63
3
votes
2 answers

mod_pagespeed for Apache 2.4 and Windows Server 2008 r2

mod_pagespeed is stable now but there's no version for Windows. Does anybody compiled the module for Windows successfully? Thanks!
MartyIX
  • 27,828
  • 29
  • 136
  • 207
3
votes
1 answer

Strange domains in mod_pagespeed cache folder

About a year ago I have installed mod_pagespeed on my VPS server, set it up and left it running. Recently I was exploring files on my server, went to pagespeed cache folder and discovered some strange folders. All folders usually named this way…
Nazariy
  • 6,028
  • 5
  • 37
  • 61
2
votes
1 answer

What do the mod_pagespeed statistics mean?

Here's a dump of the stats provided my mod_pagespeed from one of my sites. resource_url_domain_rejections: 6105 rewrite_cached_output_missed_deadline: 4801 rewrite_cached_output_hits: 116004 rewrite_cached_output_misses: 934 resource_404_count:…
Sam
  • 4,437
  • 11
  • 40
  • 59
2
votes
1 answer

mod_pagespeed combine css on other domain

I've been looking at mod_pagespeed as a way to speed up my site. I currently load my CSS/JS from a separate domain to speed up loading of those resources. However, I like to break up my CSS/JS into useful functional chunks. This means, in the…
Endophage
  • 21,038
  • 13
  • 59
  • 90
2
votes
2 answers

Getting CSP reports on www.pagespeed-mod.com

I have switched to using Content-Security-Policy for my website. I'm starting to see reports about the following not being allowed: https://www.pagespeed-mod.com/v1/taas Does anyone know why the website is trying to load this file? I'm using Google…
ThomasArdal
  • 4,999
  • 4
  • 33
  • 73
2
votes
0 answers

Pagespeed Insights API for pages behind authentication

I am using the lighthouse API to pull pagespeed insights and recommendations and have run into an issue where when I test the page in the ui, https://developers.google.com/speed/pagespeed/insights, I get results but the screen shot of the page only…
2
votes
1 answer

Modpagespeed Apache Plugin Not Lazy Loading Images

The problem: PageSpeed Insights says images aren't being lazy loaded and the documentation says the img tag should be replaced with "data-pagespeed-lazy-src" attribute (its not doing that). pagespeed.conf: ... ModPagespeedEnableFilters…
Brayden Hancock
  • 786
  • 1
  • 6
  • 22
2
votes
0 answers

Mod Pagespeed is applied partially. Combining only few JS files and rest are not combined

I have mod_pagespeed installed for apache and for 1 website I have enabled it using .htaccess. Below is the .htaccess code : ModPagespeed on ModPagespeedEnableFilters combine_javascript ModPagespeedEnableFilters…
Vivek Tankaria
  • 1,301
  • 2
  • 15
  • 35
2
votes
0 answers

Pagespeed doesn't apply correctly on Web Page Source Code. Module enabled on apache

I have pagespeed module installed on Apache server and a website developed on codeigniter. As I want to enable pagespeed only on few domain hosted on server. In .htaccess file have used below code to enable pagespeed :
Vivek Tankaria
  • 1,301
  • 2
  • 15
  • 35
2
votes
2 answers

mod_expires doesn't work with mod_pagespeed enabled

When trying to perform well in Google's Pagespeed insights, we've hit a situation. We enabled mod_pagespeed and that worked. It did what it's supposed to do. However, when looking at the results, on GT Metrix and Pagespeed Insights when we have…
2
votes
0 answers

Google Page Speed for WAMP

I am looking to install google page speed extension for apache in WAMP.
Imran Naqvi
  • 2,202
  • 5
  • 26
  • 53