From 3f45aba2afdbd917b404b1a6173a6b2a97bd946a Mon Sep 17 00:00:00 2001 From: Rodrigo Chacon Date: Thu, 31 Jan 2013 02:40:08 -0200 Subject: [PATCH] Hardcoding cache --- httpbin/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpbin/core.py b/httpbin/core.py index bdd6f99..4bbad50 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -47,7 +47,7 @@ def set_cors_headers(response): if request.method == 'OPTIONS': response.headers['Access-Control-Allow-Credentials'] = 'true' response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, DELETE, PATCH, OPTIONS' - response.headers['Access-Control-Max-Age'] = str(60 * 60) # 1 hour cache + response.headers['Access-Control-Max-Age'] = '3600' # 1 hour cache return response