If I want to use
location ~* \.(?:css|js|txt)$ {
expires 1y;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
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";
}
location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
expires 1M;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
add_header Cache-Control "public";
}
in
/var/lib/docker/volumes/sitecom_config_nginx/_data/custom# ll
total 12
drwxr-xr-x 2 root root 4096 Feb 3 05:44 ./
drwxr-xr-x 4 root root 4096 Feb 3 05:44 ../
-rw-r--r-- 1 root root 45 Feb 3 05:44 user.conf
I assume I have to reload the Nginx Proxy container? The thing is I did reload both Nginx and the Nginx Proxy post addition of expire headers using docker container 111111 restart
but I am stil told expire headers are not being used.