Update mymodule.js.php
This commit is contained in:
parent
39b03ef962
commit
e3271ed428
@ -53,8 +53,11 @@ if (!$res) die("Include of main fails");
|
|||||||
header('Content-Type: application/javascript');
|
header('Content-Type: application/javascript');
|
||||||
// Important: Following code is to cache this file to avoid page request by browser at each Dolibarr page access.
|
// Important: Following code is to cache this file to avoid page request by browser at each Dolibarr page access.
|
||||||
// You can use CTRL+F5 to refresh your browser cache.
|
// You can use CTRL+F5 to refresh your browser cache.
|
||||||
if (empty($dolibarr_nocache)) header('Cache-Control: max-age=3600, public, must-revalidate');
|
if (empty($dolibarr_nocache)) {
|
||||||
else header('Cache-Control: no-cache');
|
header('Cache-Control: max-age=3600, public, must-revalidate');
|
||||||
|
} else {
|
||||||
|
header('Cache-Control: no-cache');
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
/* Javascript library of module MyModule */
|
/* Javascript library of module MyModule */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user