impr(hosting): add precaching to static pages

This commit is contained in:
Miodec 2024-02-25 11:49:45 +01:00
parent 91c30cd889
commit fd6d1cbbf8

View file

@ -160,7 +160,14 @@ const BUILD_CONFIG = {
clientsClaim: true,
cleanupOutdatedCaches: true,
globIgnores: ["**/.*"],
globPatterns: ["index.html"],
globPatterns: [
"index.html",
"404.html",
"email-handler.html",
"privacy-policy.html",
"security-policy.html",
"terms-of-service.html",
],
runtimeCaching: [
{
urlPattern: ({ request, url }) => {