Pagespeed config

#1
Hello,
I have Pagespeed disabled globally (haven't Activated it or Enabled it on the web console) but activated it through .htaccess on a particular account:
Code:
<IfModule pagespeed_module>
  ModPagespeed on
  ModPagespeedEnableFilters rewrite_css,combine_css
  ModPagespeedEnableFilters recompress_images
  ModPagespeedEnableFilters convert_png_to_jpeg,convert_jpeg_to_webp
  ModPagespeedEnableFilters collapse_whitespace,remove_comments
</IfModule>
I can see the header on my pages x-ls-pagespeed: 2.1-1.11.33.4 and on Firefox (not in Chrome) I can see images tagged like this:
Code:
<img src="https://lost-super.global.ssl.fastly.net/wp-content/uploads/logo.png" alt="Lost Super" class="img-responsive" data-pagespeed-url-hash="3116362574" onload="pagespeed.CriticalImages.checkImageForCriticality(this);">

... and specifically on Firefox, at least one picture was resized and recompressed.

However:
  1. Chrome is still showing JPG and not WebP
  2. Chrome has no pagespeed tags in the HTML like Firefox does
  3. Neither browser is actually combining CSS files
Am I missing a step?
 
Last edited by a moderator:

Unique_Eric

Administrator
Staff member
#2
Hi, it's works on my site by following steps.
Step 1:
I copied your rules to LSWS native PageSpeed settings due to without control panel environment.
Code:
pagespeed FileCachePath /tmp/lshttpd/pagespeed;
Pagespeed EnableFilters rewrite_css,combine_css;
Pagespeed EnableFilters recompress_images;
Pagespeed EnableFilters convert_png_to_jpg,convert_jpg_to_webp;
Pagespeed EnableFilters collapse_whitespace,remove_comments;
Step 2:
Copy your image and post from my wordpress
Step 3:
Verify response header shows include:
x-ls-pagespeed: 2.1-1.11.33.4-0
Step 4:
Use Chrome with dev tools, choose Img.
Verify image of Name shows xheader.......webp

Did you enabled any cache plugin??
 
Last edited by a moderator:
Top