Add cache control headers to the API responses to avoid IE caching th… (#1500)

Add cache control headers to the API responses to avoid IE caching the response.

Signed-off-By: Colm Linehan <colm.linehan@gmail.com>
This commit is contained in:
comicmuse 2018-08-06 17:51:54 +01:00 committed by Max Leonard Inden
parent 9adf00ca9c
commit b3c62aa459
No known key found for this signature in database
GPG Key ID: 5403C5464810BC26
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ var corsHeaders = map[string]string{
"Access-Control-Allow-Methods": "GET, DELETE, OPTIONS",
"Access-Control-Allow-Origin": "*",
"Access-Control-Expose-Headers": "Date",
"Cache-Control": "no-cache, no-store, must-revalidate",
}
// Enables cross-site script calls.