Page 1 of 1

Cache-JS and CSS files everywhere, they should not be there

Posted: Fri Dec 23, 2011 5:15 pm
by BBC2009
- Joomla 1.73
- Cache settings: doesn´t matter, problem with both settings (no System-Cache plugin activated)
- Joomla native SEF
- No special plugins for compress, merge, optimisation, etc.
- Module caching deactivated in all modules, for testing purpose.

Thing is this. With cache activated Joomla shows JS and CSS files of modules, extensions and plugins that should not be there at this specific menu link. Cache deactivated and everything works OK.

As i searched forum and cannot find some answer, difficult to know what search keywords to use, a ask here.

Is it something i am missing ?
Or is it some bug ?

Below you have source code listing from one of those menu links, with uneccessary JS and CSS files being pulled. (plus many inline scripts that shoud not be there at that menu link)

Expected files are marked in BOLD.

<link rel="stylesheet" href="/media/system/css/modal.css" type="text/css" />

<link rel="stylesheet" href="/components/com_k2/css/k2.css" type="text/css" />
<link rel="stylesheet" href="http://www.xxx.com/components/com_aicon ... eneral.css" type="text/css" />
<link rel="stylesheet" href="http://www.xxx.com/media/aicontactsafe/ ... _css_1.css" type="text/css" />
<link rel="stylesheet" href="http://www.xxx.com/templates/xxx/html/c ... _style.css" type="text/css" />
<link rel="stylesheet" href="/components/com_phocamaps/assets/phocamaps.css" type="text/css" />
<link rel="stylesheet" href="/modules/mod_xperttabs/styles/style2/style2.css" type="text/css" />
<link rel="stylesheet" href="/media/mod_jcomments_latest/css/mod_jcomments_latest.css" type="text/css" />
<link rel="stylesheet" href="/media/mod_jcomments_top_posters/css/mod_jcomments_top_posters.css" type="text/css" />
<link rel="stylesheet" href="/media/mod_jcomments_most_commented/css/mod_jcomments_most_commented.css" type="text/css" />

<link rel="stylesheet" href="http://www.xxx.com/modules/mod_news_pro ... /style.css" type="text/css" />
<link rel="stylesheet" href="/modules/mod_lofk2slideshow/assets/jstyle.css" type="text/css" />
<style type="text/css">
div#poll_loading_3 {
background: url(http://images.nonumber.nl/media/system/ ... loader.gif) 0% 50% no-repeat;
width:100%;
height:20px;
padding: 4px 0 0 20px;
}

</style>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/system/js/modal.js" type="text/javascript"></script>


<script src="http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js" type="text/javascript"></script>
<script src="/components/com_k2/js/k2.js" type="text/javascript"></script>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script src="/components/com_phocamaps/assets/js/base64.js" type="text/javascript"></script>
<script src="/modules/mod_xperttabs/tmpl/xperttabs.js" type="text/javascript"></script>
<script src="http://www.xxx.com/modules/mod_news_pro ... /engine.js" type="text/javascript"></script>

<script src="/modules/mod_lofk2slideshow/assets/jscript.js" type="text/javascript"></script>
<script type="text/javascript">

Re: Cache-JS and CSS files everywhere, they should not be th

Posted: Fri Dec 23, 2011 5:21 pm
by BBC2009
This is most repeated PHP error when i activate Error reporting - Development (Maximum shows nothing)

Don´t know if it can help something.

Same warning is shown even with Cache disabled.

Code: Select all

Strict Standards: Accessing static property JCache::$_handler as non static in /home/basic/public_html/basic2/libraries/joomla/cache/cache.php on line 422

Re: Cache-JS and CSS files everywhere, they should not be th

Posted: Sat Dec 24, 2011 6:27 am
by infograf768
BBC2009 wrote:This is most repeated PHP error when i activate Error reporting - Development (Maximum shows nothing)

Don´t know if it can help something.

Same warning is shown even with Cache disabled.

Code: Select all

Strict Standards: Accessing static property JCache::$_handler as non static in /home/basic/public_html/basic2/libraries/joomla/cache/cache.php on line 422
This is solved in 2.5. beta as well as many strict standards errors (Not to use on production sites).
Nothing to do with your stated original issue.
Fo that one, I suggest you create a tracker at
http://joomlacode.org/gf/project/joomla ... er_id=8103

Re: Cache-JS and CSS files everywhere, they should not be th

Posted: Sat Dec 24, 2011 1:07 pm
by BBC2009
I am not sure how to use it. I added New tracker and nothing happened.

Re: Cache-JS and CSS files everywhere, they should not be th

Posted: Sat Dec 24, 2011 4:25 pm
by infograf768
Somebody has to look at it, test if it is reproducible, confirm it and someone, if confirmed, has to propose a patch.

Re: Cache-JS and CSS files everywhere, they should not be th

Posted: Sat Dec 24, 2011 4:32 pm
by BBC2009
Thank you. I already got answer there. If i find some solution i will write it here.

Re: Cache-JS and CSS files everywhere, they should not be th

Posted: Sat Dec 24, 2011 10:32 pm
by BBC2009
This is this problem i beleive. Right explanation of my problem. Cache in Joomla 1.7.

Merry Christmas Everyone.

http://forum.joomla.org/viewtopic.php?p=2696622

Re: Cache-JS and CSS files everywhere, they should not be th

Posted: Sun Dec 25, 2011 11:43 am
by BBC2009
Link to bug tracker Item:

http://joomlacode.org/gf/project/joomla ... m_id=27503

I would urge everyone who use Cache in 1.7.3 to inspect source code of webpages.
It is so easy to miss this, specially if you don´t have some graphic and layout problems at webpage.