Hi
I have this rule:
include /home/nginx/domains/domain.com/public/hidewp.conf;
location /wp-content/uploads/2017 {
#pagespeed off;
autoindex off;
#add_header X-Robots-Tag "noindex, nofollow";
location ~* ^/wp-content/uploads/2017/.+\.(png|jpe?g)$ {
expires 30d;
add_header Vary "Accept-Encoding";
add_header Cache-Control "public, no-transform";
try_files $uri$webp_extension $uri =404;
}
}
Is the include rule is detected by the hmwp ?
or do I change the rule ro the renamed files?
such as:
location /file/2017 {
#pagespeed off;
autoindex off;
#add_header X-Robots-Tag "noindex, nofollow";
location ~* ^/wp-content/uploads/2017/.+\.(png|jpe?g)$ {
expires 30d;
add_header Vary "Accept-Encoding";
add_header Cache-Control "public, no-transform";
try_files $uri$webp_extension $uri =404;
}
}