Skip to content

Add no-cache flag#727

Open
querielo wants to merge 1 commit intovercel:mainfrom
querielo:kirill/no-cache
Open

Add no-cache flag#727
querielo wants to merge 1 commit intovercel:mainfrom
querielo:kirill/no-cache

Conversation

@querielo
Copy link

The PR allows us to disable browser cache. It can be suitable if we often change served content.

Copy link

@davidmroth davidmroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good!


if (args['--cors'])
response.setHeader('Access-Control-Allow-Origin', '*');
if (args['--no-cache'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a test please?

@LinusU
Copy link

LinusU commented Jul 24, 2023

This would be much appreciated 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants