<div>On Sun, Sep 26, 2010 at 10:42 AM, Joel Fentin <span dir="ltr"><<a href="mailto:joel@fentin.com">joel@fentin.com</a>></span> wrote:</div><div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The browser makers could make this easy but they won't.<br>
<br>
I have needed this for years. Here is the current version of the need:<br>
After some .JPG files swap names, I want the user to reload the page from the server. Not from the cache. Elsewise, the pictures appear in the wrong places.<br>
<br>
I've been rummaging Stack Overflow and in plenty of other places, looking for advice. None of it works for me.<br>
<br>
1. The most typical advice is along the lines of:<br>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"><br>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><br>
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"><br>
<META HTTP-EQUIV="Pragma-directive" CONTENT="no-cache"><br>
<META HTTP-EQUIV="Cache-Directive" CONTENT="no-cache"><br>
<META HTTP-EQUIV="Expires" CONTENT="0"><br>
No combination of these works for me.<br>
<br>
2. The one and only thing that works well is to press the F5 button after the page loads. I have not seen an example of this in the Perl code.<br>
<br>
3. Perhaps there is some javascript that would do the job. I would need it to do something like: <a href="http://xxx.pl?ID=1234" target="_blank">xxx.pl?ID=1234</a>. Not a link nor a button - but executed in and at the end of the Perl script.<br>
<br>
If the cure is to work in only one browser, I prefer Firefox.<br></blockquote><div><br></div><div>Have you tried Etags?</div><div><br></div><div><div><a href="http://developer.yahoo.com/performance/rules.html">http://developer.yahoo.com/performance/rules.html</a> <- great stuff in there in general</div>
</div><div><br></div>Maybe you can add a version string to the image URL and get most of what you want. I haven't seen it used for images but it's used quite a bit for javascript.<div><br></div><div><img src="/images/foo.jpg?v=123456789"/> This can even point at a regular file and Apache will eat the query. If you change the version in your HTML, it'll bypass your browser cache and come back to the server even if the filename is the same - at least for <script> tags.</div>
<div><br></div><div>That said, Etag headers per-image are probably what you really want.</div><div><br></div><div>-Al</div><div><div></div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888">
<br>
-- <br>
Joel Fentin tel: 760-749-8863<br>
Biz Website: <a href="http://fentin.com" target="_blank">http://fentin.com</a><br>
Personal Website: <a href="http://fentin.com/me" target="_blank">http://fentin.com/me</a><br>
_______________________________________________<br>
San-Diego-pm mailing list<br>
<a href="mailto:San-Diego-pm@pm.org" target="_blank">San-Diego-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/san-diego-pm" target="_blank">http://mail.pm.org/mailman/listinfo/san-diego-pm</a><br>
</font></blockquote></div><br></div></div></div>