Have been reading flask docs in python and building a local website.
Just performed a speed test on my website deployed on openshift with this tool here:-
The analysis report says that my site is not caching static resources. After googling this for all my worth I gather that:-
My Question
Am I to include expire and tags in the html section? Or in the HTTP header section?
If in the HTTP header section how do I do this?
If I have missed something in the docs please let me know.
Either use 'SEND_FILE_MAX_AGE_DEFAULT' or look into webassests http://webassets.readthedocs.org/en/latest/
Similar question asked here. Flask static file Cache-Control
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With