Update:
From YSlow check, getting this issue: “static components without a far-future expiration date.”
it seems my stored CDN file expire header set to 5 days for image media and 1 day for (JS & CSS) file.
$ curl -I https://1qs9tm3fg0bzi.wpcdn.shift8cdn.com/wp-content/uploads/2018/12/xwedding-sovia-barry.jpg.pagespeed.ic.ehoQbrtt3N.webp
HTTP/1.1 200 OK
Server: nginx/1.16.0
Date: Tue, 24 Sep 2019 10:01:06 GMT
Content-Type: image/webp
Content-Length: 105792
Connection: keep-alive
Vary: Accept-Encoding
Pragma: public
Expires: Sun, 29 Sep 2019 10:01:06 GMT
ETag: W/"0"
Last-Modified: Tue, 24 Sep 2019 09:16:06 GMT
Cache-Control: max-age=432000
X-Original-Content-Length: 159049
X-Page-Speed: LEMPer/PageSpeed
X-Shift8CDN-Cache: HIT
Pragma: public
Cache-Control: public
Access-Control-Allow-Origin: https://griyaannisawedding.com
Accept-Ranges: bytes
$ curl -I https://1qs9tm3fg0bzi.wpcdn.shift8cdn.com/wp-content/plugins/wpforms-lite/assets/css/A.wpforms-full.css.pagespeed.cf.YA2pSbySp5.css
HTTP/1.1 200 OK
Server: nginx/1.16.0
Date: Tue, 24 Sep 2019 10:06:13 GMT
Content-Type: text/css
Content-Length: 29726
Connection: keep-alive
Vary: Accept-Encoding
Pragma: public
Expires: Wed, 25 Sep 2019 10:06:13 GMT
ETag: W/"0"
Last-Modified: Tue, 24 Sep 2019 09:22:09 GMT
Cache-Control: max-age=86400
X-Original-Content-Length: 35341
Vary: Accept-Encoding
X-Page-Speed: LEMPer/PageSpeed
X-Shift8CDN-Cache: HIT
Pragma: public
Cache-Control: public
Access-Control-Allow-Origin: https://griyaannisawedding.com
Accept-Ranges: bytes
while the original file (on my server) the expiration set to 1 year
$ curl -I https://griyaannisawedding.com/wp-content/uploads/2018/12/xwedding-sovia-barry.jpg.pagespeed.ic.ehoQbrtt3N.webp
HTTP/2 200
content-type: image/webp
content-length: 105792
server: LEMPer
pragma: public
accept-ranges: bytes
date: Tue, 24 Sep 2019 09:16:06 GMT
expires: Wed, 23 Sep 2020 09:16:06 GMT
etag: W/"0"
last-modified: Tue, 24 Sep 2019 09:16:06 GMT
cache-control: max-age=31536000, public
x-original-content-length: 159049
x-page-speed: LEMPer/PageSpeed
$ curl -I https://griyaannisawedding.com/wp-content/plugins/wpforms-lite/assets/css/A.wpforms-full.css.pagespeed.cf.YA2pSbySp5.css
HTTP/2 200
content-type: text/css
server: LEMPer
pragma: public
accept-ranges: bytes
date: Tue, 24 Sep 2019 09:22:09 GMT
expires: Wed, 23 Sep 2020 09:22:09 GMT
etag: W/"0"
last-modified: Tue, 24 Sep 2019 09:22:09 GMT
cache-control: max-age=31536000, public
x-original-content-length: 35341
vary: Accept-Encoding
content-length: 29726
x-page-speed: LEMPer/PageSpeed
is there any option to set the expiration time?
-
This reply was modified 5 years, 6 months ago by
Jan Dembowski.
-
This reply was modified 5 years, 6 months ago by
Jan Dembowski. Reason: Formatting