Manifest file is cached internally

#21 · closed · 2 comments

View on GitHub ↗

ukch

To reproduce: * Generate some static files using webpack * Load a page in the Flask app * Make a change to one of the source files and recompile * Reload the page The file `http://127.0.0.1:5000/static/manifest.json` should be referencing the new hash, but it is still referencing the old one. Viewing the manifest file on the filesystem yields the correct result. Restarting the Flask server and reloading yields the correct result. Version details: ``` Python 3.6.3 Flask==0.12.2 Flask-Webpack==0.1.0 ``` Here's the relevant section of my Flask config: ```python app = flask.Flask(__name__, static_url_path="/static", static_folder="build") app.config["WEBPACK_MANIFEST_PATH"] = "./build/manifest.json" Webpack().init_app(app) app.run(debug=True, threaded=True) ```

Comments

nickjj

How are you running Flask? Is it through Docker or something else? What if you remove `threaded=True`?

nickjj

Closing this due to inactivity and it's very likely a threading issue (only use 1 thread in development).