RasmusKard / what.watch

Get a randomized movie or tv show suggestion based on your chosen parameters.
https://what.watch/
0 stars 0 forks source link

explore: rerolling might be faster if whole results object is sent to frontend due to HTTP caching #78

Closed RasmusKard closed 1 month ago

RasmusKard commented 1 month ago

Needs testing to check if it's true

RasmusKard commented 1 month ago

Returning maximum range object (no filters used) is ~5.8MB

In the average user's use-case the object size is ~150kB

Need to explore how exactly HTTP shared caching works. Probably need to set it up using Nginx?

RasmusKard commented 1 month ago

Storing of tconst array in sessionStorage not possible due to to size limitations for larger result sets, need to rely on caching instead.

RasmusKard commented 1 month ago

Caching seems to be a pain with POST, will probably need to convert to GET