Answer the question
In order to leave comments, you need to log in
How to compress a photo and cache from another site?
I have an nginx site
PageSpeed Insights says:
Optimize your images
Properly formatting and compressing your images can keep them small.
and
Use the Browser Cache
If you specify the expiration date or expiration date of static resources in HTTP headers, the browser will load previously obtained resources from the local disk rather than from the Internet.
Use the browser cache for the following resources:
but I have such recommendations
Resizing and compressing the image at https://steamcdn-a.akamaihd.net/…c6ec617f7c5105ff9... will reduce it by 831 B (60%).
Compressing the page https://steamcdn-a.akamaihd.net/…6ff1bc4323dcc4786... will reduce its size by 642 B (24%).
https://steamcommunity-a.akamaihd.net/…qwe2wOu5g8K... (7.5 hours)
How to compress and cache them?
Answer the question
In order to leave comments, you need to log in
here you can recompress your jpeg without quality loss www.jpegmini.com
png here https://tinypng.com/
Static caching is configured in nginx:
location ~* ^.+\.(jpg|jpeg|gif|png|ico|svg|js|css|txt|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar)$ {
access_log off;
expires 30d;
break;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question