ph1823 opened a new issue #2053:
URL: https://github.com/apache/incubator-pagespeed-mod/issues/2053


   Hello !
   I using Symfony framework for my ebsite with webpack to generate CSS and 
JavaScript.
   I have install the pagespeed mod to optimize the load of my website, but the 
image is doest'n convert to webP.
   
   On HTML tag i have: 
`onload="pagespeed.CriticalImages.checkImageForCriticality(this);"` and 
`data-pagespeed-url-hash="902389122"` but the url of image doest'n change.
   
   In stats logs pagespeed i have:
   ```
   image_rewrite_uses: 0
   image_rewrites: 0
   ``` 
   
   My page speed configuration:
   ```
   <IfModule pagespeed_module>
       # Turn on mod_pagespeed. To completely disable mod_pagespeed, you
       # can set this to "off".
       ModPagespeed on
   
       # Direct Apache to send all HTML output to the mod_pagespeed
       # output handler.
       AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
   
       # If you want mod_pagespeed process XHTML as well, please uncomment this
       # line.
       # AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER application/xhtml+xml
   
       # The ModPagespeedFileCachePath directory must exist and be writable
       # by the apache user (as specified by the User directive).
       ModPagespeedFileCachePath            "/var/cache/mod_pagespeed/"
   
       # LogDir is needed to store various logs, including the statistics log
       # required for the console.
       ModPagespeedLogDir "/var/log/pagespeed"
   
       # Explicitly enables specific filters. This is useful in
       # conjuction with ModPagespeedRewriteLevel. For instance, filters
       # not included in the CoreFilters may be enabled using this
       # directive. This directive contains a comma-separated list of
       # filter names, and can be repeated.
       #
       ModPagespeedEnableFilters 
rewrite_javascript,rewrite_css,rewrite_images,resize_rendered_image_dimensions
   
   
       # ModPagespeedDomain
       # authorizes rewriting of JS, CSS, and Image files found in this
       # domain. By default only resources with the same origin as the
       # HTML file are rewritten. For example:
       #
       ModPagespeedDomain *.datahosting.fr
       ModPagespeedDomain *.datatips.me
        
       ModPagespeedFetchHttps enable,allow_self_signed
        
   
       # Limit the number of inodes in the file cache. Set to 0 for no limit.
       # The default value if this paramater is not specified is 0 (no limit).
       ModPagespeedFileCacheInodeLimit        0
   
       ModPagespeedEnableFilters in_place_optimize_for_browser
   
       <Location /pagespeed_admin>
           Order allow,deny
              Deny from all
           #SetHandler pagespeed_admin
       </Location>
       <Location /pagespeed_global_admin>
        Order allow,deny
        Deny from all
           #SetHandler pagespeed_global_admin
       </Location>
   
       # Enable logging of mod_pagespeed statistics, needed for the console.
       ModPagespeedStatisticsLogging on
   
       ModPagespeedMessageBufferSize 100000
   </IfModule>
   
   <IfModule !mod_version.c>
     LoadModule version_module /usr/lib/apache2/modules/mod_version.so
   </IfModule>
   
   <IfVersion < 2.4>
     LoadModule pagespeed_module /usr/lib/apache2/modules/mod_pagespeed.so
   </IfVersion>
   <IfVersion >= 2.4.2>
     LoadModule pagespeed_module /usr/lib/apache2/modules/mod_pagespeed_ap24.so
   </IfVersion>
   ```
   
   I think it is because symfony rewrites the image path (the images are in 
/public/img but symfony displays as path/img) I don't know how to fix this, do 
you have a solution?
   
   Thank for your help !


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to