Browse Source

Caching takes too long on feed

tags/1.3.6
Leonie 4 months ago
parent
commit
97e4e0eab5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend.py

+ 1
- 1
backend.py View File

@@ -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>")

Loading…
Cancel
Save