Slim down bStateSave cookie

Slim down bStateSave cookie

drakejdrakej Posts: 11Questions: 0Answers: 0
edited January 2014 in Feature requests
Not high priority at all but just a suggestion that it would be good to slim down the contents of the cookie utilized to save state. Maybe finding a better way to compress the contents of the cookie or better yet migrate the state saving to LocalStorage so that the client doesn't have to transfer all of the state information on every single request.

The reason for this is the payload for the cookie is something on the order of 2 KBs which causes every client request to exceed the size of a packet. This increases latency for every single request since the cookie is being sent with it.

Replies

  • allanallan Posts: 61,723Questions: 1Answers: 10,108 Site admin
    DataTables 1.10 uses localStorage by default, dropping the cookie for state storage, in part because of the increase in HTTP header size that they cause.

    Allan
  • drakejdrakej Posts: 11Questions: 0Answers: 0
    Awesome! I'm still on 1.0.9 so that's why I was seeing the cookie. So no need to for changes, you already did it!
  • drakejdrakej Posts: 11Questions: 0Answers: 0
    Sorry meant to say version 1.9.4. Can't wait until 1.10 is stable.
This discussion has been closed.