Changeset 603 for trunk/lib/JS.inc.php


Ignore:
Timestamp:
May 3, 2017 1:47:56 PM (7 years ago)
Author:
anonymous
Message:

Add application-wide cache control setting 'http_cache_headers'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/JS.inc.php

    r589 r603  
    153153            header('Vary: Accept-Encoding');
    154154        } else {
    155             header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
    156             header('Expires: -1');
    157             header('Pragma: no-cache');
     155            // Disallow HTTP caching entirely. http://stackoverflow.com/a/2068407
     156            header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
     157            header('Pragma: no-cache'); // HTTP 1.0.
     158            header('Expires: 0'); // Proxies.
    158159        }
    159 
    160160    }
    161161
Note: See TracChangeset for help on using the changeset viewer.