cache-control

kees
19 Posts
kees posted this 23 May 2023
Ask a Question

How can I make sure visitors see the updated page?
If I understand correct, I have to add something like:
cache-control: public, max-age=86400

Correct?
How/where do I add this line?
Open the index with HTML and add it where?

How can I make sure visitors see the updated page? If I understand correct, I have to add something like: cache-control: public, max-age=86400 Correct? How/where do I add this line? Open the index with HTML and add it where?
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 24 May 2023

Hi. Kees,

The cache-control header defines the way of caching the files of a page. In your example, caching is available for everyone, and cashed files are stored for 86400 seconds (one day). Caching increases the time of opening pages, and it is not recommended to disable caching. You can try to decrease the time of storing caching files. You can read more about it here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

Here you can read about adding it to your site:
https://stackoverflow.com/questions/4480304/how-to-set-http-headers-for-cache-control

Let us know if you have any further questions!
...................................................
Sincerely,
Paul C.
Nicepage Support Team

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

Hi. Kees, The *cache-control* header defines the way of caching the files of a page. In your example, caching is available for everyone, and cashed files are stored for 86400 seconds (one day). Caching increases the time of opening pages, and it is not recommended to disable caching. You can try to decrease the time of storing caching files. You can read more about it here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control Here you can read about adding it to your site: https://stackoverflow.com/questions/4480304/how-to-set-http-headers-for-cache-control Let us know if you have any further questions! ................................................... Sincerely, Paul C. 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