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.

Remove noCache from "mainline" Helmet

See original GitHub issue

In an effort to focus this project’s scope, I’m trying to make sure that Helmet only focuses on HTTP response headers that are strictly related to security. While nocache is useful, it’s not strictly security-related in my eyes, so I’m removing it.

This functionality isn’t going away. It’s just moving to a separate module, nocache. You can find it on npm and on GitHub.

Instead of this:

const helmet = require('helmet')
// ...
app.use(helmet.noCache())

You’ll do this:

const noCache = require('nocache')
// ...
app.use(noCache())

This is a breaking change that will be part of Helmet 4.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:18
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
EvanHahncommented, Mar 25, 2020

@JEstradaDev Good idea. I’ve added more information to the description of this issue.

3reactions
JEstradaDevcommented, Mar 25, 2020

hi!! could you add the link for nocache module or new documentation?? please

thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Smith Mainline Helmet - Blister reviews
Smith Mainline Helmet. Size Tested: Large. Blister's Measured Weight: 912 g / 32.2 oz. MSRP: $300. David Golay reviews the Smith Mainline ......
Read more >
2020's First Mainline: Review, Revise, Refresh. -
2020's First Mainline: Review, Revise, Refresh. ... 1,000, 1,500 Credit Caches removed, as well as the 15 and 50 Endo.
Read more >
Smith Mainline Helmet Technology
All components can easily be removed for cleaning. Ride with confidence knowing the Mainline is secured with a tried and true D-ring chin...
Read more >
Smith Mainline Full Face Helmet - NSMB.com
The pads are comprised of anti-bacterial materials and can be easily removed for cleaning. D-ring strap fastener which I don't love. Fumbling ...
Read more >
fingerprint stash box
Diversion safes to hide your stash in plain sight and secret ... and the Amtrak-mainline of the Burlington-Santa Fe Railroad lies ...
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