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.
This commit is contained in:
comicmuse 2018-08-06 17:51:54 +01:00 committed by Max Inden
parent d4788ed195
commit ec263489e9
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.