- commit
- 54cf9ae2b9b5d2b2073928e453ee43e9392191b6
- parent
- 145e5b2223c464d2cbee8eb0bc858c259d52c0f7
- author
- Dami <dami.etoile@gmail.com>
| M | diagramzip-shell/ | 2 | +- |
| M | diagramzip-shell/ | 2 | +- |
@@ -19,7 +19,7 @@ async function applicationShell(request: Request, assets: Fetcher): Promise<Resp
1919 })2020 const response = await assets.fetch(assetRequest)2121 const headers = new Headers(response.headers)22- headers.set('cache-control', 'no-cache')22+ headers.set('cache-control', 'no-cache, no-transform')2323 return new Response(request.method === 'HEAD' ? null : response.body, {2424 status: response.status,2525 statusText: response.statusText,@@ -7,7 +7,7 @@ describe('diagram.zip shell', () => {
77 88 expect(response.status).toBe(200)99 expect(response.headers.get('content-type')).toContain('text/html')10- expect(response.headers.get('cache-control')).toBe('no-cache')10+ expect(response.headers.get('cache-control')).toBe('no-cache, no-transform')1111 expect(await response.text()).toContain('<title>untitled.zip</title>')1212 })1313