-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video thumbnails are not cached #456
Comments
@omarroth also css, fonts and favicons should be cached. |
CSS takes around 130-170ms This font |
It's not about you, many have slow internet connection and limited bandwidth. Also caching images, css, fonts & favicon would save lots of bandwidth both for end user and the server. Currently my feed is about 700KB gzipped and without images it is <20KB, see the difference? |
As mentioned in the Matrix server, Invidious includes headers from YouTube that should make the client cache thumbnails: They unfortunately appear not to be working as expected, which is why this is labeled as a bug. Static resources hosted on Invidious are already cached, see here. |
is something wrong with this report then? -> https://gtmetrix.com/reports/invidio.us/Xaf7Ix4a |
The report appears correct. Invidious does not cache as aggressively for various reasons that results in it being scored quite poorly by that site, which recommends static assets by cached for a minimum of 1 month. Is there anything from the report that I missed? |
It says that css, fonts and favicon is cached for 1 day and those images for 5 minutes. I think that 5 minutes time should be longer and for favicon and fonts it should be infinite. I can't say about css, is that altered often? |
@cyaniventer as far as I can see in this report, the images are cached for 5 minutes? |
See below it has information about favicons, css and fonts too. |
Added partial fix for images with 62a4c82. Headers for caching weren't being correctly processed. |
JS, CSS, favicons, and fonts are now cached for 1 month with a As mentioned above, thumbnail caching should now be handled as expected. Video thumbnails support additional headers ( |
Right now, invidious doesn't cache the videos thumbnails in the browser, this is not ideal in term of loading time (client) / data usage (client/server) / load (server).
https://i.imgur.com/gHTQwNe.gif
The text was updated successfully, but these errors were encountered: