title: How to make firefox display the last version of a flask website?
body: <p>I am using a small web server for some project, and I used the classical html-css-javascript combination, with a Flask python server.</p>
  
  <p>I do frequent changes to every parts of the project, saving them each time.
  However it happens frequently that what is displayed when looking at the website corresponds to an old version of the project.<br>
  For example, if I run the following Python script:</p>
  
  <pre><code>#!/usr/bin/python3
  # -*- coding: utf-8 -*-
  
  from flask import Flask, render_template, url_for, request
  app = Flask(__name__)
  
  @app.route("/", methods=['GET', 'POST'])
  def index():
      return render_template('indexfake.html')
  
  if __name__ == "__main__":
      app.run(host= '0.0.0.0', port=5001)
  </code></pre>
  
  <p>where "indexfake.html" doesn't exists, and then go to <a href="http://localhost:5001/" rel="nofollow noreferrer">http://localhost:5001/</a>, Firefox shows a normal page, which corresponds to the one I normally use.</p>
  
  <p>If I create templates/indexfake.html (for example:)</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  {% extends "layout.html" %}
  {% block body %}
  &lt;body&gt;&lt;p&gt;a&lt;/p&gt;
      &lt;script&gt;
  console.log('smthng');
      &lt;/script&gt;
  &lt;/body&gt;
  {% endblock %}
  </code></pre>
  
  <p>The JS part is correctly executed (only if the old version had a <code>&lt;script&gt;</code> section) but the html still corresponds to the old version. However if I copy the old version pattern but with modifying it a bit, the modifications appear in the navigator</p>
  
  <p>I tried to manually clean the cache (I am using Firefox), but it doesn't change anything. I tried to stop and re-run the server too, same non-results.</p>
  
  <p>The bug is not consistent, and usually it ends after something like an hour, but currently I am experiencing it since more than 24 hours.</p>
  
  <p>Do someone know what is happening and how to fix it ?</p>
  
  <p>As a complement, here is the encapsulating template I use :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;title&gt;Cool App&lt;/title&gt;
  &lt;div class=page&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8" /&gt;
          &lt;meta content="utf-8" http-equiv="encoding" /&gt;
          &lt;title&gt;D3 Test&lt;/title&gt;
          &lt;link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}"&gt;
          &lt;link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}" /&gt;
      &lt;/head&gt;
      {% block body %}{% endblock %}
  &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/18805376/flask-interactive-debugger-broken#">This question</a> seems similar but the answer asked (reinstalling Flask and the Werkzeug suite) haven't worked for me.</p>