hi,
newbie to Plesk.
My current server config.
Nginx as webserver. No apache.
Smart static files processing >> ON (apparently when i off it, my web doesnt work)
Serve static files directly by nginx >> OFF (tried with ON, and removing the extensions like css/jpg but it still doesnt work)
im using this cache expiry header in my additonal nginx directives
nothing works!
any help? i have scoured the forums up and down, seems like there are others who are experiencing the same thing as me.
i thought expire header should be something that is implemented long time ago?
newbie to Plesk.
My current server config.
Nginx as webserver. No apache.
Smart static files processing >> ON (apparently when i off it, my web doesnt work)
Serve static files directly by nginx >> OFF (tried with ON, and removing the extensions like css/jpg but it still doesnt work)
im using this cache expiry header in my additonal nginx directives
Code:
# Expire rules for static content
# cache.appcache, your document html and data
location ~* \.(?:manifest|appcache|html?|xml|json)$ {
expires -1;
# access_log logs/static.log; # I don't usually include a static log
}
# Feed
location ~* \.(?:rss|atom)$ {
expires 1h;
add_header Cache-Control "public";
}
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
# CSS and Javascript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
# WebFonts
# If you are NOT using cross-domain-fonts.conf, uncomment the following directive
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
expires 1M;
access_log off;
add_header Cache-Control “public”;
}
nothing works!
any help? i have scoured the forums up and down, seems like there are others who are experiencing the same thing as me.
i thought expire header should be something that is implemented long time ago?