summaryrefslogtreecommitdiff
path: root/include/http_bind.hrl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2015-09-22 15:42:34 +0200
committerPaweł Chmielowski <pchmielowski@process-one.net>2015-09-22 15:42:57 +0200
commit3300c8d9941fb1809c8fbeb683fad1f5034c0cd3 (patch)
treef7e8dc6ad12077f5ce74595de71daef93d5e5eb8 /include/http_bind.hrl
parentNameprep host name passed to http-bind before using in (EJAB-1658) (diff)
Set disable caching headers in http-bind responses (EJAB-1643)
Diffstat (limited to 'include/http_bind.hrl')
-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 446e4710..7c0e04a9 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]).