blekhmanlab / rxivist

API providing access to papers and authors scraped from biorxiv.org
https://rxivist.org
GNU Affero General Public License v3.0
59 stars 11 forks source link

Send shorter cache headers for frequently updated pages #222

Closed rabdill closed 5 years ago

rabdill commented 5 years ago

24-hour cache for the API and the website means we could end up with two-day-old data when we're grabbing new info every 6 hours. The front page (and maybe any queries that don't include strings?) should have much shorter cache times, which CloudFront will respect if we set it the right way.

rabdill commented 5 years ago

https://github.com/rabdill/rxivist/commit/a0c7e46f7c6aa096e3ee1994e132ed1ced1b1f23 https://github.com/rabdill/rxivist_web/commit/36fff86efba457c10d1f1d87e0563526fb31b9a3