- NON cache question
- Posted by daniel kaplan on June 1st, 2005
i have a webpage where people can download a spreadsheet:
<td align="left">
<a href="http://mywebsitehere.com/financials.xls">Click here</a>
</td>
and it's all cool, until i put a NEW version of the file there....then my
browser keeps the old one in cache, and i can't open the NEW one....
other than RENAMING each new version, i have to think there is a way to
specify in the HTML code above...DO NOT CACHE, DO NOT READ FROM CACHE,
ALWAYS GET FROM SERVER, or something to that affect.
please let me know
thanks!
daniel
- Posted by Rob Duval on June 2nd, 2005
daniel kaplan wrote:
Daniel,
There's a meta-tag you can use in the head of your code:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
should hook you right up.
cheers,
...rob
- Posted by daniel kaplan on June 2nd, 2005
"Rob Duval" <rgduval@nospam.comcast.net> wrote in message
news:429E6920.1050108@nospam.comcast.net...
am familiar with that, and the one i am using:
<meta http-equiv="expires" content="0">
but isn't that just for the page?
does it affect links in that page that are for downloading?
- Posted by Rob Duval on June 3rd, 2005
daniel kaplan wrote:
Hmm...good question. Off the top of my head, I'm not really sure...
I googled http cache, and meta-cache (the meta site i was looking at
suggested using http coding rather than meta tags for better control).
However, the quick look only shows Meta-tags.
And a quick perusal of RFC 2616 told me how it worked, but not how to do
it: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
I'd say give it a shot, and see what happens <shrug>. Sorry I'm not
more helpful...in a hurry tonight, and can't research much. It's only a
couple of lines of code to see how it effects the links on that page.
You mentioned that you're opening spreadsheets...I assume they open
outside of the web browser (non-html pages)? If they were html pages of
their own, you could certainly meta-no-cache them at that level.
There may also be some server side controls about not allowing clients
to cache. I'd have to do some digging through my apache config file to
see if that were available.
I'll keep digging away at it, and respond in here if I can find anything
more helpful.
cheers,
...rob


