Closed niutech closed 2 years ago
You could remove the switch statement from the source to use it on your own server(s). It is some older implementation with two reasons: 1. CloudFlare only had specific options which worked with the max-age, but this is solved now. 2. We don't want to have shorter max-ages than 1 day, as it would be unfeasible to host the free service without any caching.
@kleisauke : Can we make it any number of days?
This has been fixed with commit e7ea2710b424ed96423277d2a1df7ca94505a88d, which has just been rolled out to production. Thanks for reporting this!
Thank you!
Please allow arbitrary
max-age
parameter forCache-Control
header, such as1d
or7d
instead of only31d
,62d
,93d
and186d
. What's the technical problem with making itn
days? Just remove thisswitch
statement. For me, 31 days is too long.