polimediaupv / paella-core

Paella Player core library
Educational Community License v2.0
20 stars 15 forks source link

Save Paella preferences in Local Storage instead of a cookie? #322

Closed karendolan closed 1 year ago

karendolan commented 1 year ago

Some of our students are getting "HTTP 431 header too large" errors on player requests. This is probably because of other large cookies in their browser. While we were debugging, we notice that the Paella 7 preference cookie is quit large, and will get larger as our students visit more videos through Paella 7. Our site uses session cookies, so all the cookies get sent on each request from Paella 7.

Other sites, like https://github.com, save preferences to the browser Local Storage. Is it possible for Paella 7 to save it's preferences data to the browser local storage area instead of to a cookie? This would cut down on the request header size for our students.