Forcing retrieval of a fresh copy of a file with a link



Is it possible to create a link which will cause either A) the server
to serve a fresh copy of a file or B) the browser to "refresh" the
copy of the file.

Doing it via a link is the only possibility that I think would be
viable for our situation, as changing HTTP headers isn't really
feasible/desired right now (think 'expires' or 'no-cache'). Also, the
file is non-HTML, so adding a 'no cache' meta tag to the file itself
won't work. The file in question has no file extension and contains
text-only excerpts from Apache access logs; parsing it as HTML or PHP
causes it to jumble the line endings and cram everything up, making it
unreadable.

So...Is there a way to add something to the A HREF= tag or create some
other sort of link that can do this? We're also open to other
possibilities which don't involve HTTP headers (or at least the
modification of .htaccess, httpd.conf, etc.).
.



Relevant Pages

  • Re: Re: Re: Re: Apache Server HTML Injection and UTF-7 XSS Vulnerability
    ... change manually the ecnoding in Firefox to UTF-7.. ... just about as easy as convincing a user to blindly accept a ... Think about what a browser has to do in order to interpret a page. ... Before it interprets your meta tag, it already has to guess the content ...
    (Bugtraq)
  • Re: Caching problem
    ... You need to work out if IIS is caching the page (ie always sending out the ... same content), or the browser is, or some proxy server in between is. ... > just setting the http headers in IIS to expire content ... >>the real HTTP headers often override the meta tags. ...
    (microsoft.public.inetserver.iis)
  • Re: Title and Navigation bar disappear on home page only when previewi
    ... not from the other pages in my web site. ... | navigation bar in design view on my home page, but they don't appear when I ... | preview in my browser. ... The problem happened after I used a Meta Tag analyzer ...
    (microsoft.public.frontpage.client)
  • Re: read charset of meta tag
    ... which should give you the charset the browser has ... That is certainly possible as that browser will follow the HTTP headers and take any character set declarations in the headers in preference to anything else. ... that putting something to metatags the server obeys him/her. ...
    (comp.lang.javascript)
  • Re: Prevent caching of a page
    ... I think I will go for the meta tag, but not mess with http headers. ... information _before_ it starts rendering. ... probably start rendering with the defaults (provided by your HTTP server) ...
    (alt.html)

Loading