<div>On Sun, Sep 26, 2010 at 10:42 AM, Joel Fentin <span dir="ltr">&lt;<a href="mailto:joel@fentin.com">joel@fentin.com</a>&gt;</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&#39;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&#39;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>
&lt;meta http-equiv=&quot;Cache-Control&quot; content=&quot;no-cache, no-store, must-revalidate&quot;&gt;<br>
&lt;META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;&gt;<br>
&lt;META HTTP-EQUIV=&quot;Cache-Control&quot; CONTENT=&quot;no-cache&quot;&gt;<br>
&lt;META HTTP-EQUIV=&quot;Pragma-directive&quot; CONTENT=&quot;no-cache&quot;&gt;<br>
&lt;META HTTP-EQUIV=&quot;Cache-Directive&quot; CONTENT=&quot;no-cache&quot;&gt;<br>
&lt;META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;0&quot;&gt;<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> &lt;- 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&#39;t seen it used for images but it&#39;s used quite a bit for javascript.<div><br></div><div>&lt;img src=&quot;/images/foo.jpg?v=123456789&quot;/&gt;  This can even point at a regular file and Apache will eat the query.   If you change the version in your HTML, it&#39;ll bypass your browser cache and come back to the server even if the filename is the same - at least for &lt;script&gt; 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>