mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 03:01:59 +10:00
fix: pdf viewer and embeds
This commit is contained in:
@ -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');
|
||||
}
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user