No Cache HTML

brentonbattles
3 Posts
brentonbattles posted this 2 weeks ago
Ask a Question

Where do I enter the following Cache Control HTML? I tried "Page Settings," "HTML, "Additional Head," but got popups rather than accepting the coding. Is is the code written correctly?

Thank you

"Cache-Control" "no-cache"

Rewrite everything to https

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Where do I enter the following Cache Control HTML? I tried "Page Settings," "HTML, "Additional Head," but got popups rather than accepting the coding. Is is the code written correctly? Thank you "Cache-Control" "no-cache" #Rewrite everything to https RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 2 weeks ago

Hello Brenton,

The "Cache-Control: no-cache" directive is meant to be set in the HTTP response headers, not within the HTML document itself. The section of your HTML document is for meta tags, link tags, and other metadata related to the document, but HTTP headers need to be set on the server side.

If your hosting provider has provided you with a way to add custom HTTP headers, you should use that interface. If you are unable to do that through your hosting provider's interface, you may need to contact their support for guidance.

In the HTML document itself, you can include meta tags that provide information about caching, but these are not as effective as setting the actual HTTP header. For example, you can include the following meta tag:

<meta http-equiv="Cache-Control" content="no-cache">

in Nicepage is a specific section for "Meta Tags," you can add the following line:

<meta http-equiv="Cache-Control" content="no-cache">

You can add this in the Site Settings / HTML / Meta Tags
...................................................
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

Hello Brenton, The "Cache-Control: no-cache" directive is meant to be set in the HTTP response headers, not within the HTML document itself. The section of your HTML document is for meta tags, link tags, and other metadata related to the document, but HTTP headers need to be set on the server side. If your hosting provider has provided you with a way to add custom HTTP headers, you should use that interface. If you are unable to do that through your hosting provider's interface, you may need to contact their support for guidance. In the HTML document itself, you can include meta tags that provide information about caching, but these are not as effective as setting the actual HTTP header. For example, you can include the following meta tag: <meta http-equiv="Cache-Control" content="no-cache"> in Nicepage is a specific section for "Meta Tags," you can add the following line: <meta http-equiv="Cache-Control" content="no-cache"> You can add this in the Site Settings / HTML / Meta Tags ................................................... 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
You must log in or register to leave comments