diff options
Diffstat (limited to 'include/http_bind.hrl')
-rw-r--r-- | include/http_bind.hrl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/http_bind.hrl b/include/http_bind.hrl index 446e47105..cd8512f0e 100644 --- a/include/http_bind.hrl +++ b/include/http_bind.hrl @@ -1,6 +1,6 @@ %%%---------------------------------------------------------------------- %%% -%%% ejabberd, Copyright (C) 2002-2015 ProcessOne +%%% ejabberd, Copyright (C) 2002-2016 ProcessOne %%% %%% This program is free software; you can redistribute it and/or %%% modify it under the terms of the GNU General Public License as @@ -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]). |