mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
www: remove old cache disable, only used twice and uneeded
This commit is contained in:
parent
6097278e98
commit
53f6dace75
@ -32,9 +32,6 @@
|
||||
ini_set('max_execution_time', '0');
|
||||
ini_set('max_input_time', '0');
|
||||
|
||||
/* omit no-cache headers because it confuses IE with file downloads */
|
||||
$omit_nocacheheaders = true;
|
||||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("interfaces.inc");
|
||||
require_once("filter.inc");
|
||||
|
||||
@ -85,15 +85,6 @@ function html_safe($text)
|
||||
return htmlspecialchars($text, ENT_QUOTES | ENT_HTML401);
|
||||
}
|
||||
|
||||
/* make sure nothing is cached */
|
||||
if (isset($omit_nocacheheaders) && $omit_nocacheheaders) {
|
||||
header("Expires: 0");
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
}
|
||||
|
||||
header("X-Frame-Options: SAMEORIGIN");
|
||||
|
||||
set_language();
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
$omit_nocacheheaders = true;
|
||||
|
||||
require_once('guiconfig.inc');
|
||||
require_once('interfaces.inc');
|
||||
require_once('pfsense-utils.inc');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user