2
0
forked from Wavyzz/dolibarr

Use function top_httphead to include headers in pages.

This commit is contained in:
Laurent Destailleur
2017-05-09 21:01:37 +02:00
parent 39b4549813
commit b8b91db007
22 changed files with 59 additions and 42 deletions

View File

@@ -39,7 +39,7 @@ session_cache_limiter(FALSE);
require_once '../../main.inc.php';
// Define javascript type
header('Content-type: text/javascript; charset=UTF-8');
top_httphead('text/javascript; charset=UTF-8');
// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
else header('Cache-Control: no-cache');