Uploaded files

howiwishu61
9 Posts
howiwishu61 posted this yesterday
Ask a Question

I am a writer and use my website to give readers access to my novels and short stories. The problem here is that these files undergo constant modification due to both changes in content as well as adjustments for optimal viewing results under a variety of conditions. Yet, when I delete the older, outdated file and replace it by uploading the new version, nothing changes. I'm still looking at the old file I no longer have a use to, and I have to tell you, I'm getting really tired of this.

Vote to pay developers attention to this features or issue.
3 Replies
Order By: Standard | Newest
Support Team
Support Team posted this yesterday

Hello Richard,

Thank you for contacting us

Could you please clarify which export option you are using?
Are you using HTML export and uploading the files to your own hosting?
Please also try the following: Clear your browser cache and cookies.

The topic was moved to private.

...................................................
Sincerely,
George.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

howiwishu61
9 Posts
howiwishu61 posted this 23 hours ago

I am using the 'link to' option for hyperlinks and using the upload feature. I understood it was a cache problem, using the older files by the same name in order to improve performance, and while I can clear my own browser data, I have no control over my reader's browsers. It seems that the only way I can resolve the problem is to constantly use new file names, which is going to complicate things. But, thanks anyway.

Support Team
Support Team posted this 22 hours ago

Hello Richard,

In this case, the only fully reliable solution is to set proper cache‑control headers on your server - this requires having your own hosting with access to the server configuration, for example via Nginx. That way, uploaded files will be reloaded on every visit instead of being served from the browser cache.

Here's an example Nginx configuration you can use for your uploaded files (PDFs, docs, images, etc.):


location ~* \.(pdf|docx|doc|jpg|jpeg|png|zip)$ {
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires 0;
}

As a simpler and more convenient alternative, we suggest versioning your files, which is effectively equivalent to renaming them. By adding a parameter to the URL (like file.pdf?v=2), you ensure that readers always get the latest version without changing the actual file name.
...................................................
Sincerely,
Theo S.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

You must log in or register to leave comments