Skip to content

Instantly share code, notes, and snippets.

@peterjaap
Created June 23, 2020 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterjaap/0e26ab5fe1ae53f7a3b06c3438b02aa4 to your computer and use it in GitHub Desktop.
Save peterjaap/0e26ab5fe1ae53f7a3b06c3438b02aa4 to your computer and use it in GitHub Desktop.
location /media/customer/ { deny all; }
location /media/import/ { deny all; }
location /magento_version { deny all; }
location /static {
expires max;
# Remove signature of the static files that is used to overcome the browser cache
location ~ ^/static/version {
rewrite ^/static/(version\d*/)?(.*)$ /static/$2 last;
}
add_header Cache-Control "public";
add_header X-Frame-Options "SAMEORIGIN";
allow all;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment