Pagespeed config

Discussion in 'Install/Configuration' started by mobisuper, Sep 13, 2017.

  1. mobisuper

    mobisuper Member

    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:
    <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
    I can see the header on my pages x-ls-pagespeed: 2.1- and on Firefox (not in Chrome) I can see images tagged like this:
    <img src="" 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.

    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: Sep 19, 2017
  2. Unique_Eric

    Unique_Eric Administrator Staff Member

    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.
    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-
    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: Sep 19, 2017

Share This Page