title: Disabling caching in Flask
body: <p>I have some caching issues. I'm running very small web-application which reads one frame, saves it to the disk and then shows it in browsers window.</p>
  
  <p>I know, it is probably not the best solution, but every time I save this read frame with the same name and therefor any browser will cache it.</p>
  
  <p>I tried to use html meta-tags - no success:</p>
  
  <pre><code>&lt;meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /&gt;
  &lt;meta http-equiv="Pragma" content="no-cache" /&gt;
  &lt;meta http-equiv="Expires" content="0" /&gt;
  </code></pre>
  
  <p>Also, I have tried this one (flask-specific):</p>
  
  <pre><code>resp.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
  resp.headers["Pragma"] = "no-cache"
  resp.headers["Expires"] = "0"
  </code></pre>
  
  <p>This is how I tried to modify <code>resp</code> headers:</p>
  
  <pre><code>r = make_response(render_template('video.html', video_info=video_info))
  
  r.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
  r.headers["Pragma"] = "no-cache"
  r.headers["Expires"] = "0"
  </code></pre>
  
  <p>Still both Google Chrome and Safari do caching.</p>
  
  <p>What might be the problem here?</p>