diff --git a/holmes_extractor/examples/example_search_DE_literature.py b/holmes_extractor/examples/example_search_DE_literature.py index a593b9e..28d73a5 100644 --- a/holmes_extractor/examples/example_search_DE_literature.py +++ b/holmes_extractor/examples/example_search_DE_literature.py @@ -106,6 +106,7 @@ def on_get(self, req, resp): resp.body = \ json.dumps(holmes_manager.topic_match_documents_returning_dictionaries_against( req.params['entry'][0:200], only_one_result_per_document=True)) + resp.cache_control = ["s-maxage=31536000"] application = falcon.API() application.add_route('/german', RestHandler()) diff --git a/holmes_extractor/examples/example_search_EN_literature.py b/holmes_extractor/examples/example_search_EN_literature.py index 88ee38b..68e7002 100644 --- a/holmes_extractor/examples/example_search_EN_literature.py +++ b/holmes_extractor/examples/example_search_EN_literature.py @@ -75,6 +75,7 @@ def on_get(self, req, resp): resp.body = \ json.dumps(holmes_manager.topic_match_documents_returning_dictionaries_against( req.params['entry'][0:200])) + resp.cache_control = ["s-maxage=31536000"] application = falcon.API() application.add_route('/english', RestHandler())