Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Clearing cached css for admin section
Hrvoje_86
#1 Posted : Tuesday, January 03, 2012 12:39:50 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
I have made some changes to styles/form.css but kooboo keeps giving me the old minified css
Contents/WebResource?name=siteStyles&version=20110822
Is there any way to refresh it?
jifeng
#2 Posted : Tuesday, January 03, 2012 12:49:23 PM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China
Restart the web site and clear the browser client cache.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
Hrvoje_86
#3 Posted : Tuesday, January 03, 2012 12:52:48 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
I would like to avoid restarting the live site.
jifeng
#4 Posted : Tuesday, January 03, 2012 1:01:56 PM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China

I think it is impossible, because the css/script minified request has been cache in the http output cache. :(
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
Hrvoje_86
#5 Posted : Tuesday, January 03, 2012 1:06:50 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
Dou you know which file generated this link Contents/WebResource?name=siteStyles&version=20110822 ?
Hrvoje_86
#6 Posted : Tuesday, January 03, 2012 1:16:52 PM(UTC)
Rank: Advanced Member
Groups: Registered

Joined: 1/28/2011(UTC)
Posts: 157
Location: Croatia
I did it by changing the version number in webresource.config

<webResources version="20120302"

Thanx.
jifeng
#7 Posted : Tuesday, January 03, 2012 1:19:15 PM(UTC)
Rank: Administration
Groups: Administrators, Registered

Joined: 9/3/2009(UTC)
Posts: 1,555
Location: Xiamen China

You can also change the version string in the "Areas\Contents\WebResources.config", but the file also need to restart the website to take effect.

The file generated the like is : "Kooboo\Web\Mvc\WebResourceLoader\MvcExtensions.cs".

My suggest, if you want to avoid restarting the site, do not change the raw file. You can create a css patch, then include the css file after the system css including in the view.
Regards,

Jifeng Huang

Kooboo Team

Microsoft ASP.NET MVP
1 user thanked jifeng for this useful post.
Hrvoje_86 on 1/3/2012(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.072 seconds.