diff options
Diffstat (limited to 'src/exchange/taler-exchange-httpd_wire.c')
| -rw-r--r-- | src/exchange/taler-exchange-httpd_wire.c | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_wire.c b/src/exchange/taler-exchange-httpd_wire.c index e2baa1ce..aa187c1c 100644 --- a/src/exchange/taler-exchange-httpd_wire.c +++ b/src/exchange/taler-exchange-httpd_wire.c @@ -483,6 +483,17 @@ build_wire_state (void)                                             wsh->dat));    }    TALER_MHD_add_global_headers (wsh->wire_reply); +  /* Set cache control headers: our response varies depending on these headers */ +  GNUNET_break (MHD_YES == +                MHD_add_response_header (wsh->wire_reply, +                                         MHD_HTTP_HEADER_VARY, +                                         MHD_HTTP_HEADER_ACCEPT_ENCODING)); +  /* Information is always public, revalidate after 1 day */ +  GNUNET_break (MHD_YES == +                MHD_add_response_header (wsh->wire_reply, +                                         MHD_HTTP_HEADER_CACHE_CONTROL, +                                         "public,max-age=86400")); +    {      struct GNUNET_HashCode h;      char etag[sizeof (h) * 2];  | 
