Placed the below in the .htaccess file and it works perfectly!
<FilesMatch ".(pdf)$"> FileETag None <ifModule mod_headers.c> 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" </ifModule> </FilesMatch>
Excellent!
Keith
I would like to say away form appending the url if possible.
Is there a way to serve it up with php so as to pull the newest updated file? If yes, can you point me in the direction as to how that is done. I have a support ticket with my host to see if it is something they can change on their end for me.
Thanks- Keith
I have a website where I allow people to submit a .pdf file and it is then displayed in an iframe or in a pdf object in a div. The names of the files always stay the same, and are uploaded to a specific folder.
Problem is- when they upload a new .pdf file....the browser always displays the old .pdf file.
Deleting temp files- doesn't change.
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> does not work
Is there a way to make sure that the current and updated pdf file gets served to the browser and it displays it?
Any suggestions would help.
Andy
Actually- I did define the $pdf variable like so;
$pdf = $_GET['pdf'];
This is done at the very start of the page. So $pdf does infact echo out Whatever.pdf
I am trying to dynamically display an embeded pdf on a page with a variable that is passed via the $_GET method
link- http://www.mysite.com/pdf_display_page.php?pdf=Whatever.pdf
<embed src="http://www.mysite.com/reviews/<?php echo $pdf;?>" width="585px" height="400px">
It does not work. Testing the $_GET variable does show the Whatever.pdf
Is it because of the double quotes somehow?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.