Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching Text Files

Status
Not open for further replies.

MikeWiz628

Programmer
Dec 24, 2002
22
US
On my web server I have a list of folders by date and in each folder are zipped files. Inside are either text documents of .pdfs.

My client allows the user to select a date and a report. The server then goes to the designated foler and unzips the file into a "user folder" where the client points and opens a new window with the file.

However, it's caching the most recent of text files. I'll choose a text file and it opens, but if I go to a much earlier file it still opens the most recent. If I manually go to the user directory and open the file it's the old file.

This is not an asp page that is caching it's an txt file opened in ie that's cached.

Some options for me is to read the file into an asp page and display that way or to execute notepad and open the page. However, I wish to resolve this caching issue. I look forward to hearing some answers. Thanks in advance.

 
Your server will be set to cache files and that's the file it will be sending to the client. You can change how long it caches files before renewing them.
ASP files won't be cached since their content is dynamic



 
On the client, one can clear the temp files and resume to receive the older text files. But, as soon as one of the more recent files are viewed, they'll will cache themselves and you will only see them when viewing older files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top