-
Story
-
Resolution: Done
-
Medium
-
None
-
None
I discovered this problem while working on https://jira.nypl.org/browse/SIMPLY-2532.
We can get very sophisticated when deciding how long we'll cache a feed in the "cachedfeeds" table. But when it comes to setting the Cache-Control header, which tells clients and intermediaries how long to cache that feed, we basically always say "10 minutes".
It should be possible to use the "cachedfeeds" value to derive the Cache-Control header. However since the feed is passed back from CachedFeed.fetch as a Unicode string, this would probably require creating a subclass of "unicode" that has caching information.