Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Forums / Cotonti / Support / Chrome cache problems...??

#1 2012-11-12 09:38

Well, this is a strange problem and I wonder if you also get this...

Sometimes websites made in Cotonti behave in such a way that after editing or submitting page, they load the page url without loading any stylesheet. Simply refreshing the page loads the css again. This happens only in Chrome browser (newest one), also in Windows 7 (home or professional). Purging Cotonti cache doesn't help here. 

Can you help me with how can I debug this? It is very strange.

Added 6 minutes later:

I can see in Chrome that the GET doesn't work because this browser interprets the links as (and the same for css: 

It happens not instantly but after some time of messing with the site. It's quite strange. Any idea why is it happening?

Can you tell me how can I make all js and css absolute urls?

This post was edited by tensh (2012-11-12 09:43, 5 years ago)
#2 2012-11-12 10:33

This problem appears from time to time, maily on And discussed in some topics here. But still not resolved due hard to reproduce it to track cause.


Добавлено 4 минуты спустя:

As for you question - it can be done only with parsing all $cot_rc_reg records before it becomes resource loading tags.
правильный хостинг —
#3 2012-11-12 18:49

This happens because <base> tag in <head> doesn't work sometimes in Chrome right after a POST request. I have no cure for this, switching all URLs to absolute is a tedious path and even Google itself recommends using relative URLs on site.

May the Source be with you!
#4 2012-11-12 20:28

Solution is quite simple: Don't use Chrome :) but that would be a bit harsh, I guess..

#5 2012-11-13 07:21

Maybe the old good redirection would be a cure?

"You have successfully submitted the page, redirecting..."

Is it still in Cotonti?

Added 3 minutes later:

Or maybe we can write a htaccess rewrite for the script consolidating and minifying css and js... hmm.