Skip to content

Commit

Permalink
Merge bf3173d into 44f5b5e
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Oct 14, 2019
2 parents 44f5b5e + bf3173d commit 054e87e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iiif_validator/validator.py
Expand Up @@ -448,6 +448,9 @@ def after_request(self):
response.headers['Access-Control-Allow-Methods'] = methods
response.headers['Access-Control-Allow-Headers'] = headers
response.headers['Allow'] = methods
# Add no cache so CloudFront doesn't cache response
response.headers['Cache-Control'] = 'no-cache'
response.headers['Pragma'] = 'no-cache'

def not_implemented(self, *args, **kwargs):
"""Returns not implemented status."""
Expand Down

0 comments on commit 054e87e

Please sign in to comment.