leverage browser caching nginx:
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d;
}
location ~* \.(pdf)$ {
expires 30d;
}
}
Thanks to: https://www.digitalocean.com/community/questions/leverage-browser-caching-for-nginx
Thanks to: https://varvy.com/
Thanks to: https://developers.google.com/speed/pagespeed/insights/