Open niccokunzmann opened 4 months ago
Hey @niccokunzmann, I would love to work on this and I've set it up and running as of now.
I'd like to know what all files you would prefer to have cached.
for example,
these above mentioned file types can be considered for caching
Please let me know if you'd like me to include or remove any types of files from being cached.
Thank You!
Thanks! Everything in the static folder can be cached regardless of its file type. That is what the folder is for. I do not know which headers are right to set but it would improve the loading time, I think.
This is probably worth looking at:
Hey,
Thank you for that, I've gone ahead and made the required changes to the code so now it should cache all the files in the static folder. And yes I do observe a significant improvement in the load time.
Here's a screenshot comparing the before and after-
before (hosted website): after :
I'll go ahead and create a PR for this, Thanks for the help!
Hey @niccokunzmann ,
I've created the PR, please review and merge it.
Thank you very much!
We can reduce network traffic by caching a few files in the static directory.
flask probably offers an easy solution to this problem.
We're using Polar.sh so you can upvote and help fund this issue. We receive the funding once the issue is completed & confirmed by you. Thank you in advance for helping prioritize & fund our work.