0

I am facing a new strange problem while downloading files from web server. I am using windows server 2012.

I will explain the problem with example.

I have a text file (update.txt) in my server, to which I am writing some info about the currently available downloads.

Now I will update the update.txt. But when I download that file, old txt is being downloaded instead of new one. I have tried to download using Chrome, Firefox and IE with clearing history but the problem is not solved. I have deleted the file from server and then tried to download but still old file downloaded.

When I change the Internet to another ISP the problem is solved.

So what causes this error? Whether ISP keep the cache of downloads? Or Is this the error of web server ?

IT researcher
  • 190
  • 2
  • 15

1 Answers1

-1

on a linux server with apache2, i would make a .htaccess file with:

<ifModule mod_headers.c>
<FilesMatch "\update.txt>
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>
</ifModule> 

if you use apache2 on windows give it a try.

FrankStein
  • 21
  • 8