mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-08 14:42:46 +08:00
impr(hosting): add precaching to static pages
This commit is contained in:
parent
91c30cd889
commit
fd6d1cbbf8
1 changed files with 8 additions and 1 deletions
|
@ -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 }) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue