Sunday, 18 August 2013

How to exclude cookies from the HTTP request?

How to exclude cookies from the HTTP request?

Let's say your server-side architecture never needs to know about a user's
cookies. Only the front-end JavaScript files ever look at them... all the
storing/retrieving of cookie values is done in the JavaScript.
Is there a way to keep these cookies from being sent in the HTTP request?
The reason I ask is because sometimes these cookies are very large, and
can cause 413 HTTP errors since they exceed the maximum buffer size for
our server.
There's no need to send cookies to the server when the server never uses
them... especially when they cause problems!

No comments:

Post a Comment