aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/http_bind.hrl5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/http_bind.hrl b/include/http_bind.hrl
index 446e47105..7c0e04a98 100644
--- a/include/http_bind.hrl
+++ b/include/http_bind.hrl
@@ -38,9 +38,12 @@
-define(AC_MAX_AGE,
{<<"Access-Control-Max-Age">>, <<"86400">>}).
+-define(NO_CACHE,
+ {<<"Cache-Control">>, <<"max-age=0, no-cache, no-store">>}).
+
-define(OPTIONS_HEADER,
[?CT_PLAIN, ?AC_ALLOW_ORIGIN, ?AC_ALLOW_METHODS,
?AC_ALLOW_HEADERS, ?AC_MAX_AGE]).
-define(HEADER,
- [?CT_XML, ?AC_ALLOW_ORIGIN, ?AC_ALLOW_HEADERS]).
+ [?CT_XML, ?AC_ALLOW_ORIGIN, ?AC_ALLOW_HEADERS, ?NO_CACHE]).