Skip to content
Permalink
Browse files

Caching takes too long on feed

  • Loading branch information
koyuawsmbrtn committed Jul 19, 2019
1 parent 47443ea commit 97e4e0eab5c9f2d7124984b77c4917a78096d728
Showing with 1 addition and 1 deletion.
  1. +1 −1 backend.py
@@ -21,7 +21,7 @@ def getpodcast():
q = request.query["q"] # pylint: disable=unsubscriptable-object
response.headers['Access-Control-Allow-Origin'] = '*'
response.content_type = "application/json"
response.set_header("Cache-Control", "public, max-age=604800")
response.set_header("Cache-Control", "public, max-age=600")
return json.dumps(feedparser.parse(q), default=lambda o: '<not serializable>')

@get("/api/v1/getbanner/<val>")

0 comments on commit 97e4e0e

Please sign in to comment.
You can’t perform that action at this time.