Skip to content

Commit

Permalink
fix: add cache-control no cache
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jan 21, 2025
1 parent af2e96c commit 44d2b5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ui/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export default (ctx: Vitest): Plugin => {
'<!-- !LOAD_METADATA! -->',
`<script>window.VITEST_API_TOKEN = ${JSON.stringify(ctx.config.api.token)}</script>`,
)
res.setHeader('content-type', 'text/html')
res.setHeader('Cache-Control', 'no-cache, max-age=0, must-revalidate')
res.setHeader('Content-Type', 'text/html; charset=utf-8')
res.write(html)
res.end()
return
Expand Down

0 comments on commit 44d2b5c

Please sign in to comment.