Support » Plugin: Prevent Browser Caching » Suggestion fro meta tags

  • Resolved toto


    Hi i suggest you to add checkbox to insert some code into head of all pages.

      <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
      <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate, post-check=0, pre-check=0" />
      <meta http-equiv="cache-control" content="max-age=0" />
      <meta http-equiv="expires" content="0" />
      <meta http-equiv="pragma" content="no-cache" />
     <meta name="robots" content="noindex,nofollow,noarchive" />

    I think it will be good to add this code into head section, its useful it tell browser not cache anything from the site.

    OTHER PHP solutions

    header('Cache-Control: no-cache, no-store, must-revalidate');
    header('Pragma: no-cache');
    header('Expires: 0');

    Thanks a lot 🙂

Viewing 1 replies (of 1 total)
  • Plugin Author kostyatereshchuk


    Hi @toto,

    Thank you for the suggestion.

    This plugin is related only to JS and CSS files but I didn’t add meta tags because it may not work properly on all browsers and also may be related from the server settings (eg. .htaccess records in apache). My goal is to make stable work in all cases.

    Programmers can simply use nocache_headers() function ( to prevent this type of caching on some browsers/servers.

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion fro meta tags’ is closed to new replies.