Lofesa commented on issue #1714:
URL: 
https://github.com/apache/incubator-pagespeed-ngx/issues/1714#issuecomment-705635985


   Whit "...As it is a direct request is/should be using IPRO" you will say 
that you requested the image directly? Some like:
   `https://mydomain.com/1.png` ?
   If yes, that not work. Pagespeed optimizes resources in html code and only 
in the html code. If you request a resource directly, pagespeed does nothing So 
for testing, create an html page with the image. And try the debug parameter:
   `https://mydomain.com/page-with-image.html/?PageSpeedFilters=+debug`
   Then look at the html code, pagespeed must inject debug code as html 
comments.
   And the image file url must we in your domain. Resources in others domains 
can“t be optimized unless you auth it expresly, but the other domain must have 
pagespeed too.
   Other aspect to take account is the file ttl. The image must have a 
cacheable cache-control header. If you set the cache-control header too shortly 
then the optimized image in the pagespeed cache expires and must restart the 
whole optimization process.
   I wil say, if you use a cache-control: max-age=300 , the optimized image 
rest in the pagespeed cache for 300s and every 300s the whole optimization 
process must restart.
   
   P.S. Perdona mi ingles patatero =:-)


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