fix : page files cache control
This commit is contained in:
@@ -56,11 +56,11 @@ export class AppStack extends cdk.Stack {
|
|||||||
exclude: ["engines"],
|
exclude: ["engines"],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
exclude: pagePaths,
|
exclude: [...pagePaths, "*.html"],
|
||||||
memoryLimit: 512,
|
memoryLimit: 512,
|
||||||
cacheControl: [
|
cacheControl: [
|
||||||
CacheControl.setPublic(),
|
CacheControl.setPublic(),
|
||||||
CacheControl.maxAge(cdk.Duration.hours(1)),
|
CacheControl.maxAge(cdk.Duration.days(1)),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -72,11 +72,11 @@ export class AppStack extends cdk.Stack {
|
|||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
exclude: ["*"],
|
exclude: ["*"],
|
||||||
include: pagePaths,
|
include: [...pagePaths, "*.html"],
|
||||||
memoryLimit: 512,
|
memoryLimit: 512,
|
||||||
cacheControl: [
|
cacheControl: [
|
||||||
CacheControl.setPublic(),
|
CacheControl.noCache(),
|
||||||
CacheControl.maxAge(cdk.Duration.hours(1)),
|
CacheControl.maxAge(cdk.Duration.millis(0)),
|
||||||
],
|
],
|
||||||
contentType: "text/html",
|
contentType: "text/html",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user