How do I reset the cache data to a user?

  • 0
    How do I reset the cache data to a user?
    The page changes html data frequently.
    Browsers keep a cache of these pages and do not update the data.
    Is there a script that will force this?
    JavaScript Joseph Donaldson, Nov 14, 2020

  • 2 Answers
  • 0
    Forced - I do not know the ways. You can make a recommendation to the browser to update the cache. For example, via .htaccess:

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access 1 day"
    </IfModule>
    Anonymous

  • 0
    If speech is CSS / JavaScript and other files, then it is enough to add some GET parameter to the links on the site.
    Genevieve Kim

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!