Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

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

tensh
#1 2012-11-12 09:38


Contributors
Thanked: 9 times

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 www.site.com/list-category/js/somejs.js (and the same for css: www.site.com/list-category/themes/nemesis/css/default.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, 2 years ago)
Macik
#2 2012-11-12 10:33


Team
Thanked: 59 times

This problem appears from time to time, maily on cotonti.com. 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.

https://github.com/macik
Trustmaster
#3 2012-11-12 18:49


Administrators
Thanked: 227 times

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!
Kingsley
#4 2012-11-12 20:28


Donator
Thanked: 7 times

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

tensh
#5 2012-11-13 07:21


Contributors
Thanked: 9 times

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.