EPrints Technical Mailing List Archive
Message: #09300
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Cache Files - Always look for new
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Cache Files - Always look for new
- From: James Kerwin <jkerwin2101@gmail.com>
- Date: Thu, 4 May 2023 14:45:52 +0100
CAUTION: This e-mail originated outside the University of Southampton.
Hi All,
A user uploaded a file to our data repository, opened it, noticed a mistake, deleted the file and reuploaded the new file. When they click the link and the pdf opens in the browser it opens the original file because, I assume, it's been cached.
This happens rarely and when it does we ask the user to refresh the page with the document or do a ctrl+f5 refresh to clear the cache for that page. In this instance the user is insisting that they couldn't possibly ask this of the people they had already
shared the link with.
I've made changed to my apache ssl conf to include:
<FilesMatch ".(js|css|jpg|jpeg|png|gif|js|css|ico|swf|pdf|html)$">
<IfModule mod_headers.c>
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header unset Last-Modified
</IfModule>
</FilesMatch>
<IfModule mod_headers.c>
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header unset Last-Modified
</IfModule>
</FilesMatch>
I am not an apache expert by any stretch of the imagination. After restarting apache this has not resolved the issue. Can anybody advise? Maybe there is a specific EPrints THING I need to be aware of? We're on EPrints 3.4.4.
Thanks,
James
- Follow-Ups:
- [EP-tech] Cache Files - Always look for new
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Cache Files - Always look for new
- References:
- [EP-tech] Cache Files - Always look for new
- From: James Kerwin <jkerwin2101@gmail.com>
- [EP-tech] Cache Files - Always look for new
- Prev by Date: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Undefined or invalid function when add new dataset field
- Next by Date: Re: [EP-tech] Cache Files - Always look for new
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):