Closed Birowsky closed 5 years ago
s3UploadOptions: {
CacheControl: (fileName) => fileName === "index.html" ? indexCaching : otherCaching
}
Sorry, I'm a bit confused. Based on their types here and here, CacheControl accepts only a string. Where does the change you are implying happen?
Aha, I guess this is the one.
Dude, types are gonna save the world ; ]
This project is so old now, i made it before typescript was a thing 😮
How to specify root
example.com
caching policy of an hour, while the rest of the S3 objects would have max age of a year?