Skip to content

Commit

Permalink
impr(hosting): add precaching to static pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Feb 25, 2024
1 parent 91c30cd commit fd6d1cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit fd6d1cb

Please sign in to comment.