Ensuring django template is never cached by any browser
<p>I have a django template with a class-based <code>DetailView</code> associated to it. I've over-ridden the <code>get_context_data</code> method of the <code>DetailView</code>, using it to pass some required <code>context</code> variables that I display in the template (essentially an image). That's all I've done.</p>

<p>How do I ensure this particular django template of mine is <strong>never cached by any browser</strong>? Wading through various sources tells me I need to over-ride the <code>HttpResponse</code> in the <code>dispatch</code> method to accomplish no-cache? </p>

<p>I understand that I'll need to set the <code>Cache-Control</code>, <code>Pragma</code>, <code>Expiry</code> etc. I've just been unable to make headway regarding whether to (or how to) over-ride the dispatch method. Can someone give me a simple clarificational example of how they would go about implementing no-cache for such a template?</p>