Created
June 23, 2020 14:54
-
-
Save peterjaap/0e26ab5fe1ae53f7a3b06c3438b02aa4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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