MinifyCSS

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
7/7/2011 11:33:16 AM
Gravatar
Total Posts 156

MinifyCSS

We are running 2.3.6.6, the css is being combined, but not minified.  The MinifyCSS flag is set to true in the config file.

 

Any suggestions?

7/7/2011 11:45:03 AM
Gravatar
Total Posts 18439

Re: MinifyCSS

I believe this is because if you have it configured to not cache on the server then it also does not minify. The  idea being that you should always have server caching enabled unless you are working on the design in which case it might help to be able to read the CSS easier. Minifying is a somewhat expensive process so if caching is turned off we are doing this expensive processing on every request, so it makes sense to not minify when not caching to avoid having this expensive process on every request. If you have it set to cache on the server it still would not cache for your own requests if you have the cookie that says don't cache, but it would cache and minify for other visitors.

Best,

Joe

7/7/2011 12:41:29 PM
Gravatar
Total Posts 156

Re: MinifyCSS

Thanks, Joe.

I think it would be a good idea to document this part in web.config.

You must sign in to post in the forums. This thread is closed to new posts.