I have updated a PDF file on my webserver via ftp several times but it is not updating to the latest version. Whenever I go to my website and open the document, it still shows the old document. I am using cloudflare service on my website which I suppose stores documents in cache but it has now been 2 weeks and it continues to show the old document.
The file name has to remain the same.
Is there any workaround for this problem rather than changing the name of the file.
Finally I found out that it was actually an issue with caching at cloudflare. Cloudflare however has an option in their dashboard which can be used to purge the cache. This clears all the cache and updates the file or page to the latest version. The instructions are given at the link below.
https://support.cloudflare.com/hc/en-us/articles/200169246-How-do-I-purge-my-cache-
Related
I have created a webapplication and set up an endpoint which returns a FileStreamResult, these can be large zip and pdf files for example. The main issue I'm facing is that if a download gets interrupted (for example the internet goes down by the client), the temporary file that is generated by the browser is immediately deleted.
I'm aware of range-requests, but to utilize them, I would have to read files from the client, to determine how much progress the download made, which is not possible from the server side and also, the same problem persists about the temporary file deletion.
So this seems like a browser limitation to me, but please correct me if I'm wrong, I would appreaciate any ideas.
I am using goddady linux server. I want to update the file of the same name. I successfully upload the file to the server.
I check it from the panel, I see the new version.
There is no error in uploading the file.
I check the file from the browser, I see the old version.
I am using Flutter. I check it from the application, I see the old version.
I clean the cache many times, but after hours, the problem is solved by itself.
Is there an easy way to circumvent this problem?
Due to this issue, I am unable to progress my work. It's wasting my time and effort :(
I am facing weird issue with file uploads. When I upload a new file to publicly visible folder, I can see it instantly in anonymous mode. But if i try to access it in non-anonymous mode, the server responds with 404 unless I do hard refresh (ie ctrl + F5 for Mozzila).
I have already disabled cache control headers for that folder in apache, but that did not seem to resolve the issue. It seems to me that the apache is storing information that "there is actually no file at requested url" and serves it to user unless user clears cache even if the file is uploaded at that location. Anyone ran into similar issue in the past?
By default, most browsers cache images, styles and scripts automatically. The easiest way to bypass this for development environments is to set the caching headers detailed here
Another common way to bypass caching is to set a random query parameter (usually ?v=<random value here>).
Chromium based browsers also have a disable cache option in the dev tools
I am working on a web site that I worked heavily on a couple of years ago but only maintained since. It was recently migrated to another server. The new server uses ZendFramework version 1.12.20 on Apache (httpd=2.4.6-88.el7.x86_64).
There seems to be a weird bug where instead of using the URL of an image, it sends data:image content. Unfortunately the data:image is of an old image icon instead of the replacement icon. If I go directly to the URL of the image, it also still shows the old image. So it seems like a caching problem.
I've tried clearing the web browser cache and restarting the web server. There are no image files in /usr/local/zend/library/Zend/Cache and /usr/share/php/Zend/Cache. What will clear the Zend or Apache cache?
I have a web page that downloads a pdf version of an ssrs report through a link. However when I make changes to the data, the browser pulls up the same pdf file as before without the updated information (the pdf file stored in the temp folder). If I then go to another browser and download the PDF I get the new version, but the other browser still gets the old version. How can I force the browser to download a new version of the pdf report?
The url I use to create the pdf is below:
http://servername/ReportServer/Pages/ReportViewer.aspx?/MyReport/&rs:Command=Render&ReportID=123456&rs:Format=PDF
I used the clearsession parameter to get a fresh pdf with updated information,
it looks like this in the url:
http://servername/ ReportServer/Pages/ReportViewer.aspx?/MyReport/ &rs:Command=Render&ReportID=123456 &rs:Format=PDF &rs:ClearSession=true
Managing Report Sessions on a URL
Any one of the flowing will work.
Modify the report viewer .aspx to set
the content expiration to immediate.
Modify IIS to set the content
expiration to immediate.
Configure your browser to check for
newer version of the page or to not
cache pages.