File tree Expand file tree Collapse file tree 8 files changed +38
-9
lines changed Expand file tree Collapse file tree 8 files changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ def dispatcher(request):
10
10
if request .method == "OPTIONS" :
11
11
return respond_cors ()
12
12
13
- headers = {"Access-Control-Allow-Origin" : "*" }
13
+ headers = {
14
+ "Access-Control-Allow-Origin" : "*" ,
15
+ "cache-control" : "public, max-age=21600"
16
+ }
17
+
14
18
args = request .args .to_dict ()
15
19
16
20
validator = Validator (params = args )
@@ -22,4 +26,4 @@ def dispatcher(request):
22
26
23
27
response = list_data (result .result )
24
28
25
- return output (response , headers )
29
+ return output (response , headers )
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ def dispatcher(request):
21
21
22
22
return ("" , 204 , headers )
23
23
24
- headers = {"Access-Control-Allow-Origin" : "*" }
24
+ headers = {
25
+ "Access-Control-Allow-Origin" : "*" ,
26
+ "cache-control" : "public, max-age=21600"
27
+ }
28
+
25
29
args = request .args .to_dict ()
26
30
27
31
validator = Validator (params = args )
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ def dispatcher(request):
22
22
return ("" , 204 , headers )
23
23
24
24
# Set CORS headers for the main request
25
- headers = {"Access-Control-Allow-Origin" : "*" }
25
+ headers = {
26
+ "Access-Control-Allow-Origin" : "*" ,
27
+ "cache-control" : "public, max-age=21600"
28
+ }
29
+
26
30
args = request .args .to_dict ()
27
31
28
32
validator = Validator (params = args )
Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ def dispatcher(request):
23
23
return ("" , 204 , headers )
24
24
25
25
# Set CORS headers for the main request
26
- headers = {"Access-Control-Allow-Origin" : "*" }
26
+ headers = {
27
+ "Access-Control-Allow-Origin" : "*" ,
28
+ "cache-control" : "public, max-age=21600"
29
+ }
27
30
28
31
response = Result (result = COUNTRIES )
29
32
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ def dispatcher(request):
22
22
return ("" , 204 , headers )
23
23
24
24
# Set CORS headers for the main request
25
- headers = {"Access-Control-Allow-Origin" : "*" }
25
+ headers = {
26
+ "Access-Control-Allow-Origin" : "*" ,
27
+ "cache-control" : "public, max-age=21600"
28
+ }
29
+
26
30
args = request .args .to_dict ()
27
31
28
32
validator = Validator (params = args )
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ def dispatcher(request):
22
22
return ("" , 204 , headers )
23
23
24
24
# Set CORS headers for the main request
25
- headers = {"Access-Control-Allow-Origin" : "*" }
25
+ headers = {
26
+ "Access-Control-Allow-Origin" : "*" ,
27
+ "cache-control" : "public, max-age=21600"
28
+ }
29
+
26
30
args = request .args .to_dict ()
27
31
28
32
validator = Validator (params = args )
Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ def dispatcher(request):
23
23
return ("" , 204 , headers )
24
24
25
25
# Set CORS headers for the main request
26
- headers = {"Access-Control-Allow-Origin" : "*" }
26
+ headers = {
27
+ "Access-Control-Allow-Origin" : "*" ,
28
+ "cache-control" : "public, max-age=21600"
29
+ }
27
30
28
31
response = Result (result = RANKS )
29
32
Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ def dispatcher(request):
22
22
return ("" , 204 , headers )
23
23
24
24
# Set CORS headers for the main request
25
- headers = {"Access-Control-Allow-Origin" : "*" }
25
+ headers = {
26
+ "Access-Control-Allow-Origin" : "*" ,
27
+ "cache-control" : "public, max-age=21600"
28
+ }
26
29
args = request .args .to_dict ()
27
30
28
31
validator = Validator (params = args )
You can’t perform that action at this time.
0 commit comments