Skip to content

Commit ffce932

Browse files
MAGECLOUD-2596: Add Long-term Caching Headers for Media and Static Assets
1 parent 918b643 commit ffce932

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.magento.app.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ web:
5151
root: "pub/media"
5252
allow: true
5353
scripts: false
54+
expires: 1y
5455
passthru: "/get.php"
5556
"/static":
5657
root: "pub/static"
5758
allow: true
5859
scripts: false
60+
expires: 1y
5961
passthru: "/front-static.php"
6062
rules:
6163
^/static/version\d+/(?<resource>.*)$:

0 commit comments

Comments
 (0)