Fix: type must be text/javascript
This commit is contained in:
parent
d7f90877bc
commit
a7fbe00d4e
@ -37,8 +37,7 @@ session_cache_limiter(FALSE);
|
|||||||
require_once("../../main.inc.php");
|
require_once("../../main.inc.php");
|
||||||
|
|
||||||
// Define javascript type
|
// Define javascript type
|
||||||
header('Content-type: text/javascript');
|
header('Content-type: text/javascript; charset=UTF-8');
|
||||||
header("Content-type: text/html; charset=UTF-8");
|
|
||||||
// Important: Following code is to avoid page request by browser and PHP CPU at each Dolibarr page access.
|
// 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');
|
if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
|
||||||
else header('Cache-Control: no-cache');
|
else header('Cache-Control: no-cache');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user