Hi,
Trying to get Cache expiration to work on Plesk Obsidian, while using nginx and having no luck.
As soon as I apply the directives the images don't show anymore.
Any suggestions on how to overcome this without switching to Apache only please?
Trying to get Cache expiration to work on Plesk Obsidian, while using nginx and having no luck.
As soon as I apply the directives the images don't show anymore.
Code:
location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg|ttf)$ {
expires 30d;
add_header Pragma "public";
add_header Cache-Control "public";
}
Any suggestions on how to overcome this without switching to Apache only please?