question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--maxage option not working?

See original GitHub issue

I have the following in package.json:

"start:dev": "sirv public --single --dev --host 0 --port 8080 -m 0"

However, the response headers lack cache-control. Is this a bug or did I misunderstand the usage of -m/--maxage?

On a related note, wouldn’t it make sense to always pass a no cache header in dev mode?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mustafa0xcommented, Oct 17, 2019

🎉

0reactions
lukeedcommented, Oct 16, 2019

Available on the new next version for both packages:

  • sirv-cli@1.0.0-next.1
  • sirv@1.0.0-next.1
npm install sirv-cli@next

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access-Control-Max-Age not working with Authorization header
If Authorization is incompatible with Access-Control-Max-Age is it such a bad idea to include the auth token in the body rather than as...
Read more >
Access-Control-Max-Age - HTTP - MDN Web Docs
The Access-Control-Max-Age response header indicates how long the results of a preflight request (that is the information contained in the ...
Read more >
maxAge doesn't work as expected · Issue #609 - GitHub
This token when signed has an iat of 1, exp of 36000. Validation clockTimestamp is set to 1 so as it's validating it...
Read more >
maxage option in logrotate not working as expected
So I tried maxage option in logrotate but it is not working as expected. Let say I have 6 logs which is created...
Read more >
Express session middleware
Note If both expires and maxAge are set in the options, then the last one defined in the object is what is used....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found