cache-control
cache-control copied to clipboard
Should max-age have `=` in express?
Whey you use max-age, code that is generated in express shows following:
res.set('Cache-Control', 'max-age 86400');
shouldn't there be =
instead of space, like so
res.set('Cache-Control', 'max-age=86400');
Thank you
Yes appears you're right! Thanks for letting me know will fix asap.
Still not fix yet?
I thought I was smart by using builder instead of writing my Cache-Control manually to avoid small typos and wasted time. But wasted a lot time because of this :laughing: In case it's not obvious, this isn't anything express specific, this tool simply does not output valid Cache-Control headers.
Thanks for letting me know, and sorry about that @FINDarkside. I will take it down as I don't have time to maintain this anymore. All the best.