incubator-pagespeed-ngx icon indicating copy to clipboard operation
incubator-pagespeed-ngx copied to clipboard

how to check pagespeed optimized content or not??

Open amirhosseinvz94 opened this issue 6 years ago • 3 comments

amirhosseinvz94 avatar May 20 '19 13:05 amirhosseinvz94

Hi It depend of what filter are you using. If you are using flters related to images, the url must be rewrited and add some thing like https://you.url/myimage.jpg.ic.pagespeed.HASH.webp (or jpg) same with css files. If you has enabled filters to inline things you an se css,js or images inlined in the html. You can see at the http headers some like x-page-speed: (pagespeed version)

Lofesa avatar May 21 '19 07:05 Lofesa

that means if pagespeed optimized jpg without

Hi It depend of what filter are you using. If you are using flters related to images, the url must be rewrited and add some thing like https://you.url/myimage.jpg.ic.pagespeed.HASH.webp (or jpg) same with css files. If you has enabled filters to inline things you an se css,js or images inlined in the html. You can see at the http headers some like x-page-speed: (pagespeed version)

that means if pagespeed convert(optimized) jpeg to webp without rewriting html, will be added x-page-speed header to webp response??

amirhosseinvz94 avatar May 21 '19 09:05 amirhosseinvz94

Hi yes if the image is converted from jpg to webp, the header is here. But a image can be converted to webp or not (depend on headers requested by brownser) but (it depend on enabled filter) maybe rewited to other jpg file (adjusting size to the rendered dimensions, for example). But not only images are optimized, the cache life time for a pdf file can be extended to a year, so the url is rewrited too. I don´t understand what you mean with "...without rewriting html...". The html is rewited by pagespeed module to set these news url. All files that are optimized by pagespeed module have the header x-pagespeed: (version).

Lofesa avatar May 21 '19 11:05 Lofesa