The length of time we cache articles for depends on the age of the article (an exponential back off algorithm). We have three different options here, depending how important it is for you that updates are quick. Note that the more often we check for updates, the more requests the app will make. This means that performance in the app will be slightly worse, and you'll use slightly more bandwidth.
Default
Unpublished, 1 second cache
Less than an hour old, one hour cache
Less than two days old, 1 day cache
older than 2 days, 1 month cache
Fast TTL
Unpublished, 1 second cache
Less than an hour old, one minute cache
Less than two days old, five minutes cache
Older than 2 days, 6 hour cache
Older than 1 month, 1 day cache
Very fast TTL
Unpublished, 1 second cache
Less than an hour old, 10 second cache
Less than 6 hours old, 60 second cache
Less than 12 hours old, 180 second cache
Less than a day old, 10 minute cache
Less than a month old, 1 hour cache
Older than 1 month, 1 day cache
X-Pugpig-Content-Age
and X-Pugpig-Content-Age-Bucket
we return. For example:curl -I https://test.content.pugpig.com/2019/01/29/my-article/pugpig_index.html HTTP/1.1 200 OK X-Pugpig-Content-Age: 26672901s X-Pugpig-Content-Age-Bucket: older than 2 days, 1 month cache Cache-Control: max-age=2592000
Comments
0 comments
Please sign in to leave a comment.