Author |
|
AIWEB Groupie
Joined: 19 October 2010 Location: United States
Online Status: Offline Posts: 54
|
Posted: 31 July 2011 at 1:42pm | IP Logged
|
|
|
Is there any way to omit the defines.js file from caching?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 01 August 2011 at 5:56am | IP Logged
|
|
|
If you look into webmail.php file you'll find the following code there:
Code:
<?php if (USE_JS_GZIP && IS_SUPPORT_GZIP) { ?>
<script type="text/javascript" src="cache-loader.php?v=<?php echo JS_VERS; ?>&t=def"></script>
.......
<?php } else { ?>
<script type="text/javascript" src="js/common/defines.js"></script>
....... |
|
|
and cache-loader.php file contains instructions on what should be cached in this "def" case:
Code:
case 'def':
$type = $_GET['t'];
$files = array(
'js/common/defines.js',
'js/common/common-helpers.js',
....... |
|
|
Now, if you'd like to avoid caching defines.js file, that's going to take 2 steps:
1) make sure the <script> tag which includes 'js/common/defines.js' is provided outside of that if construct;
2) remove any its reference from within cache-loader.php file.
Hope this helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
AIWEB Groupie
Joined: 19 October 2010 Location: United States
Online Status: Offline Posts: 54
|
Posted: 02 August 2011 at 12:44pm | IP Logged
|
|
|
Awesome - thanks a ton!
|
Back to Top |
|
|