# /ESS/.htaccess  :  no caching of any kind for all training modules

<IfModule mod_headers.c>

  # Part 1: disable HTTP caching for every file in /ESS/ and subfolders.
  # no-store means the browser may not keep a copy at all.
  Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
  Header set Pragma "no-cache"
  Header set Expires "0"

  # Part 2: every time a course page loads, wipe the browser's
  # cache and all site storage (localStorage, sessionStorage,
  # IndexedDB, Cache Storage, service workers) for this origin.
  # This is the server-side equivalent of your reset bookmarklet.
  <FilesMatch "\.html?$">
    Header set Clear-Site-Data "\"cache\", \"storage\""
  </FilesMatch>

</IfModule>