Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

disable-caching-on-safari.js 252 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
  1. module.exports = function disableCachingOnSafari (req, res, next) {
  2. const isSafari = /^((?!chrome|android).)*safari/i.test(req.headers['user-agent'])
  3. if (isSafari) {
  4. res.header('Last-Modified', (new Date()).toUTCString())
  5. }
  6. return next()
  7. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...