Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6323461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:31:14+00:00 2026-05-24T16:31:14+00:00

I have a file that I link to from my website like <a href=http://example.com/myfile.txt>View!</a>

  • 0

I have a file that I link to from my website like

<a href="http://example.com/myfile.txt>View!</a>

However, this file changes very frequently and when the link is clicked, the browser loads the cached version of the file, not the actual file.
Is there a way so that clicking on that link will bypass the cache for that page?

Something nice like <a bypassCache href=""> would be wishful thinking.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:31:15+00:00Added an answer on May 24, 2026 at 4:31 pm

    Something nice like would be wishful thinking.

    Indeed, there is something you can do from within the link: Add a random GET parameter.

    <a href="http://example.com/myfile.txt?a=193834923283943842923">View!</a>
    

    You could use JavaScript (or of course a server-side scripting language like PHP) to do this on a dynamic basis.

    However, the far superior way would be to configure the text file’s caching headers correctly in the first place on server side. Stealing the header info from Best way to disable client caching, a .htaccess file like this should work:

    <Files myfile.txt>
    FileETag None
    <IfModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control "store, no-cache, must-revalidate, post-check=0, pre-check=0"
    Header set Pragma "no-cache"
    Header set Expires "Sun, 19 Nov 1978 05:00:00 GMT"
    </IfModule>
    </FilesMatch>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a link <a id=DownloadLink href='controller/action' target=_blank>Download File</a> that has to open a
I have a page in my website that requires a simple file download link.
I have a link from anther website that I do not have control of
I have csv file that looks like this: artist,year,id,video_name,new_video_id,file_root_name,video_type ,,,,,, Clay Aiken,1,clay_aiken,Sorry Seems To
I have a file that looks something like this def foo bar {{ //
I have a file that I can get to with the UNC \mypath\myfile. I
I'd like to read the contents of a .csv file from a website, into
I have a single point of entry on my website mysite.com/admin/index.php? View=List&Model=User All access
I have a file, call it secret.pdf, that I offer for download. However, I
I have an external JSON file (data.json) and would like to get data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.