mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #4209 from overleaf/jpa-service-worker-24h-cache
[Server] lower the cache duration for the service worker to 24h GitOrigin-RevId: b67b030722812a30d7c2fc98f9183538307f9a1a
This commit is contained in:
parent
a6cce9d2f6
commit
28fafffef3
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ if (Settings.exposeHostname) {
|
|||
})
|
||||
}
|
||||
|
||||
webRouter.get(
|
||||
'/serviceWorker.js',
|
||||
express.static(Path.join(__dirname, '/../../../public'), {
|
||||
maxAge: oneDayInMilliseconds,
|
||||
})
|
||||
)
|
||||
webRouter.use(
|
||||
express.static(Path.join(__dirname, '/../../../public'), {
|
||||
maxAge: STATIC_CACHE_AGE,
|
||||
|
|
Loading…
Reference in a new issue