Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

How to set the cache-control header? #30

Open
tiandavis opened this issue Apr 15, 2018 · 1 comment
Open

How to set the cache-control header? #30

tiandavis opened this issue Apr 15, 2018 · 1 comment

Comments

@tiandavis
Copy link

Hi @stojanovic!

Quick question, "How to set the cache-control header on files using scottyjs?" The resulting header would look like this: Cache-Control: max-age=86400. Where, ideally, the 86400 value would be configurable command line option or environment variable. See, https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html

Cool name btw! 👍

Thanks!

@stojanovic
Copy link
Owner

Good idea! Do you want to send PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants