Skip to content

Commit

Permalink
sockjs/sockjs-protocol#56 - add no_cache to all POSTS
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Sep 27, 2012
1 parent 44b4fea commit 39595b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sockjs_handler.erl
Expand Up @@ -134,13 +134,13 @@ filters() ->
%% websocket does not actually go via handle_req/3 but we need
%% something in dispatch/2
[{t("/websocket"), [{'GET', none, websocket, []}]},
{t("/xhr_send"), [{'POST', recv, xhr_send, [h_sid, xhr_cors]},
{t("/xhr_send"), [{'POST', recv, xhr_send, [h_sid, h_no_cache, xhr_cors]},
{'OPTIONS', none, options, OptsFilters}]},
{t("/xhr"), [{'POST', send, xhr_polling, [h_sid, xhr_cors]},
{t("/xhr"), [{'POST', send, xhr_polling, [h_sid, h_no_cache, xhr_cors]},
{'OPTIONS', none, options, OptsFilters}]},
{t("/xhr_streaming"), [{'POST', send, xhr_streaming, [h_sid, xhr_cors]},
{t("/xhr_streaming"), [{'POST', send, xhr_streaming, [h_sid, h_no_cache, xhr_cors]},
{'OPTIONS', none, options, OptsFilters}]},
{t("/jsonp_send"), [{'POST', recv, jsonp_send, [h_sid]}]},
{t("/jsonp_send"), [{'POST', recv, jsonp_send, [h_sid, h_no_cache]}]},
{t("/jsonp"), [{'GET', send, jsonp, [h_sid, h_no_cache]}]},
{t("/eventsource"), [{'GET', send, eventsource, [h_sid, h_no_cache]}]},
{t("/htmlfile"), [{'GET', send, htmlfile, [h_sid, h_no_cache]}]},
Expand Down

0 comments on commit 39595b7

Please sign in to comment.