CocoaPods / cocoapods.org

That website https://cocoapods.org/ - pretty useful
53 stars 44 forks source link

Add dynamic Content-Cache headers #428

Closed igor-makarov closed 4 years ago

igor-makarov commented 4 years ago

Apparently, the way it's been working is that no Cache-Control was being set on dynamic content, e.g. pod pages. Turns out this means that CDN was basically just a forward.

This PR adds headers on all requests, 60 seconds CDN-side for dynamic content, reuses the static cache headers for others.

Let Cloudflare sort them out.

This means that the 403 workaround can possibly be removed but I'd rather see this PR go up first.

igor-makarov commented 4 years ago

CC @orta

orta commented 4 years ago

👍 ace