mirror of
https://github.com/netzbegruenung/schaufenster.git
synced 2024-05-03 09:43:41 +02:00
Fixing cache_control header for events API
This commit is contained in:
parent
69f6fba133
commit
d5f4eae701
|
@ -29,7 +29,7 @@ class EventsResource(object):
|
||||||
|
|
||||||
resp.media = next_events
|
resp.media = next_events
|
||||||
maxage = 60 * 60 # 1 hour
|
maxage = 60 * 60 # 1 hour
|
||||||
resp.cache_control(["max_age=%d" % maxage])
|
resp.cache_control = ["max_age=%d" % maxage]
|
||||||
|
|
||||||
class ParticleSensorResource(object):
|
class ParticleSensorResource(object):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue