Jump to content

CDN + Minify/JS - Driving me Crazy


Recommended Posts

In the settings and on the IPS community forums, it says you can't have a CDN + Javascript running. And I've seen it mentioned a number of times on the forum here.

But community.invisionpower.com does and they serve them from netdna: http://tools.pingdom...visionpower.com

So how do you properly serve the minified javascript from cdn? I would like to serve it from my MaxCDN/NetDNA/

Link to comment
Share on other sites

it says you have to turn off minify, not that you cannot have a cdn and javascript running.
I just use the public url for maxcdn pull zone (well its off tonight for troubleshooting reasons, unrelated) and have minify turned off, works fine.
mod_deflate on server works this way.

Link to comment
Share on other sites


it says you have to turn off minify, not that you cannot have a cdn and javascript running.


I just use the public url for maxcdn pull zone (well its off tonight for troubleshooting reasons, unrelated) and have minify turned off, works fine.


mod_deflate on server works this way.




Oops I mean't to say Minified javascript. But if you look at the urls community.invisionpower.com serves they are all minified for js/css and served from NetDNA/MaxCDN



http://content.community.invisionpower.com/public/min/index.php?ipbv=484fbb5e8626cdc6c8728e5647f33c2e&f=public/style_css/css_35/ipb_help.css,public/style_css/css_35/calendar_select.css,public/style_css/css_35/ipb_common.css,public/style_css/css_35/ipb_styles.css

http://content.community.invisionpower.com/public/min/index.php?ipbv=484fbb5e8626cdc6c8728e5647f33c2e&g=js

http://content.community.invisionpower.com/public/min/index.php?ipbv=484fbb5e8626cdc6c8728e5647f33c2e&charset=iso-8859-1&f=public/js/ipb.js,cache/lang_cache/1/ipb.lang.js,public/js/ips.hovercard.js,public/js/ips.quickpm.js,public/js/ips.board.js

Link to comment
Share on other sites

I think the real answer is that you'll have to try it with your CDN and see if it works. Every CDN is going to work slightly differently. I can tell you that I use Amazon's CloudFront and don't seem to have a problem with having this optimization on; that wasn't always the case, if I remember correctly, but at some point they started sending back the GET parameters.

robert

Link to comment
Share on other sites


I think the real answer is that you'll have to try it with your CDN and see if it works. Every CDN is going to work slightly differently. I can tell you that I use Amazon's CloudFront and don't seem to have a problem with having this optimization on; that wasn't always the case, if I remember correctly, but at some point they started sending back the GET parameters.



robert




Interesting, well your post cause me to re-evauluate my choice in MaxCDN. CloudFront has way more edge locations(across the world), and your right it works perfectly with minified javascript. I think I'm actually going to switch over to cloudfront as my primary CDN.

Thanks Sam :lol:
Link to comment
Share on other sites

for the most part it works with it on for me, one spot on 2 skins that has issues, but I saw no differences in speed/tests with it off or on.
I had tons of issues with cloudflare, YMMV of course.
incapsula worked better for me, maxcdn worked even better with pull zones. no need for me to go bigger then that yet.

Link to comment
Share on other sites

Yeah Cloudflare if not setup right will cause alot of issues with ipbaords javascript. But it doesnt an excellent job at getting our main html file across the world pretty fast. We especially noticed issues with the website preloader it makes load times hang really bad (7+ seconds)

What do you run for a TTL on amazon?

I have the /public/ set for 1 day (86400)
and /uploads/ for 1 week (604800)

Link to comment
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...