fix: pdf viewer and embeds

This commit is contained in:
David Nguyen
2025-02-20 15:06:36 +11:00
parent 250381fec8
commit 50a41d0799
20 changed files with 572 additions and 665 deletions

View File

@ -24,12 +24,6 @@ server.use(
// Cache with revalidation for rest of static files.
c.header('Cache-Control', 'public, max-age=0, stale-while-revalidate=86400');
}
// Custom cache for static file pdf.worker.min.js
if (path === './build/client/pdf.worker.min.js') {
c.header('Cache-Control', 'public, max-age=3600, stale-while-revalidate=86400');
c.header('ETag', 'pdf.worker.min.js');
}
},
}),
);