feat: 🎸 cache busting

added cache busting headers to all request to prevent fetching of stale
data and bundles
This commit is contained in:
Kajetan Kazimierczak 2021-03-22 22:44:06 +01:00
parent cc666545c4
commit 5ce4ddd9d0
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ export default function wrap(fetch: Fetch, options: FetcherOptions = {}): Fetche
...init,
headers: {
...init.headers,
Pragma: 'no-cache',
'Cache-Control': 'no-cache, no-store',
// eslint-disable-next-line max-len
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36',
},