Skip to content

Commit

Permalink
CC-34246 Added strict transport security header for the static conten…
Browse files Browse the repository at this point in the history
…t. (#521)

* CC-34246: added strict transport security header for the static content

* CC-34246: revert unneeded changes
  • Loading branch information
kraal-spryker authored Oct 21, 2024
1 parent 8fde354 commit ac17ea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generator/src/templates/nginx/http/static.conf.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
expires 7d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
etag on;
try_files $uri @assets;
}
Expand All @@ -19,6 +20,7 @@
access_log off;
add_header Last-Modified 'Thu, 01 Jan 1970 00:00:00 GMT';
add_header Cache-Control 'no-store, no-cache';
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
if_modified_since off;
expires off;
etag off;
Expand Down

0 comments on commit ac17ea9

Please sign in to comment.