Currently while fetching guide for every channels, there will be one additional
connection used to set the language cookie. This optimization change this behaviour
by setting the language cookie once and then use those cookie for the rest of the
channels unless there's change in channel language.
Assume there are 10 channels and each channel only use one connection. Before the
optimization the connections made are 20 (1 for guide fetch, 1 for set language,
then multiplied by 10), and after the optimization the connections made are 11
(1 for set language, 1 for guide fetch multiplied by 10).
Signed-off-by: Toha <tohenk@yahoo.com>
Guide for mncvision.id expects to be POST request. The first POST request
indeed routed to https://mncvision.id/schedule/table, but this site will
then redirect it to https://www.mncvision.id/schedule/table. The redirection
will use GET request, so the schedule POST data will never be received
by the site.
Signed-off-by: Toha <tohenk@yahoo.com>