Our great sponsors
-
flask-static-digest
Flask extension to help make your static files production ready by md5 tagging and gzipping them.
-
Reaction-Timer
A small reaction timer for a school project. First experience with Flask, SQL, and backend/frontend development.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
In another reply someone else mentioned using Flask-Static-Digest which I highly recommend using in production. It will add a unique identifier (an md5 hash) to all of your static files so you can cache them forever with a proper web server but if they change, they will get a new file name to bust the cache.
If you want to recreate this, follow these steps: 1. Clone https://github.com/BrianZhang1/Reaction-Timer 2. Enter Reaction-Timer/ and run flask run to ensure it works 3. Stop the server and completely delete the static/ folder (containing css and js) 4. In Reaction-Timer/ run flask run again 5. Colours, formatting, and javascript are still running?????