We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce94dd commit fae37feCopy full SHA for fae37fe
serverless.yml
@@ -48,6 +48,27 @@ custom:
48
client:
49
bucketName: ${self:custom.rootName}
50
distributionFolder: build
51
+
52
+ objectHeaders:
53
+ # Cache-bustable assets (fingerprinted)
54
+ "static/*":
55
+ - name: Cache-Control
56
+ value: "public, max-age=31536000, immutable"
57
58
+ # HTML should never be cached
59
+ "index.html":
60
61
+ value: "no-cache, no-store, must-revalidate"
62
63
+ "error.html":
64
65
66
67
+ # Optional: catch-all fallback
68
+ ALL_OBJECTS:
69
70
+ value: "public, max-age=3600"
71
72
# s3LocalPath: C:\Projects\AbstractPlay\front\build\
73
s3LocalPath: ./build/
74
0 commit comments