Extension, Plugin

Archived
Forum
(read-only)

Minimee

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From John D. Wells

     

minimee_base_url from config file not working for me

Support Request

Ryan Masuga
Ryan Masuga

We just started using Minimee on devot:ee (view source and you’ll see a compressed CSS and JS file). Minimee is outputting the URLs like

http://devot-ee.com/assets/c/000000000004b213e3ba89bb9fb5589321029b699a.css 
which is correct. What we need to do is deliver that from a subdomain instead, so we can take advantage of parallel downloads. You can get to the file via our subdomain as well, which is what we’d prefer to use:
http://assets.devot-ee.com/c/000000000004b213e3ba89bb9fb5589321029b699a.css 

We’re not using the extension; all our minimee variables are in the config file. We also have to keep the protocol in mind, because sometimes we’ll be serving this minified file form a secure page (the cart, for example). We set protocol early on in our config file. 

I tried setting minimee_base_url to

$config['minimee_base_url'$protocol."assets.devot-ee.com/"

thinking that would put in either http://assets.devot-ee.com/ or https://assets.devot-ee.com/  but it seems to have no effect. I haven’t set anything for minimee_base_path - do these require each other to output correctly? Thanks!

Ryan Masuga
# 1
Ryan Masuga

I just disabled Minimee because I ran into an SSL issue. I’ll post about this in the SSL thread.

John D Wells
# 2
Developer
John D Wells

Hi Ryan,

The base_url & base_path parameters are to tell Minimee where the original files are.  It’s the cache_url that you want to be modifying - the cache_url is used to write to the eventually cached file.

Hoping that helps - I’m off to reply to your other forum post…

Cheers,
John

John D Wells
# 3
Developer
John D Wells

Ryan - actually, there’s possibly more to it I’ve just realised.  Since this is all related to SSL, I’m going to post again over there...

John