Hello, i have i big problem with pagespeed, it overriding the cache control rules:
With pagespeed URL picture:curl -I
https://www.maxicoffee.com/images/products/small/ecam_22110b_control_pannel.jpg.pagespeed.ce.5o4q1mjlOg.jpgHTTP/1.1 200 OK
Date: Wed, 28 Mar 2018 08:10:59 GMT
Last-Modified: Fri, 17 Mar 2017 15:57:15 GMT
Expires: Thu, 28 Mar 2019 08:10:59 GMT
Cache-Control: max-age=31536000With raw URl:curl -I
https://www.maxicoffee.com/images/products/small/ecam_22110b_control_pannel.jpgHTTP/1.1 200 OK
Date: Wed, 28 Mar 2018 08:13:29 GMT
Server: Apache/2.4.10 (Debian)
Vary: User-Agent
Expires: Wed, 28 Mar 2018 08:18:29 GMT
Cache-Control: max-age=300 <--- No cache ? WTF ?IF i disable pagespeed my cache control rules in htaccess is ok:curl -I
https://www.maxicoffee.com/images/products/large/ecam_22110b_control_pannel.jpg?PageSpeed=off HTTP/1.1 200 OK
Date: Wed, 28 Mar 2018 08:14:19 GMT
Server: Apache/2.4.10 (Debian)
Vary: User-Agent
Accept-Ranges: bytes
Content-Length: 49710
Cache-Control: max-age=2591000, public
Its a problem, because async picture loading doesnt use "img" tag, the result is raw query on picture without caching rule :-(
This is my htaccess rules:
<IfModule mod_headers.c>
<FilesMatch "\.(ico|jpe?g|svg|png|gif|swf|css|woff|js|gz)$">
Header set Cache-Control "max-age=2591000, public"
Header unset Last-Modified
</FilesMatch>
Header unset ETag
FileETag None
Header unset Pragma
</IfModule>
What can I DO ?
Thanks a lot
;-)