cdn

How to maintain CDN image links in dev and production sites?

I have this ASP.NET MVC application that I now want to separate out the image links to a CDN. At this moment, images typically have this markup code: <%= Html.ActionLinkWithImage("/Content/Img/Image1.png" ... This works fine in development using the local web server (Cassini), and also when published the prod server. But now I want th...

HTTPS and external (CDN) hosted files?

I have a page that references a couple of externally hosted javascript files - namely, jQuery on Google and YUI using YUI Loader. The trouble is when I access the page via HTTPS the browser complains of mixed insecure content, since the external javascript files are being accessed using http instead of https. What's a good way to deal ...

Dynamic RSL URLs. Is it possible?

Ok, so here's my problem. I have several SWFs pulled in at runtime from different domains (we're using a CDN). There are some shared fonts within the SWFs. I'm trying to minimize file sizes as much as possible, so that means either not embedding the fonts in any of those SWFs and setting all their TextFormats at runtime. That's very imp...

Can JW Player load external plugins instead of from their CDN?

Dear SO-ers, Tiny question: Can JW Player load external plugins instead of from their CDN? Basically, I just want to host my own plugins. I'm looking for something I can add to the FlashVars parameters, most likely the URL to the plugin SWF. This has been bugging me for a few days, I haven't been able to find anything on the interwebs a...

Can we detect if a site is on CDN?

Is there a way to detect if a site is on a Content Delivery Network and if yes, can we tell which service are they using? ...

Does using a CDN increase load on the database or web server?

Does using a CDN increase load on the database or Web server? If yes, then why and how? ...

Understanding how images are served and cached

So I'm wondering how browsers treat requests for images. I'm hoping to use a cdn for serving product images on my website. I'd also like to use the cdn for serving button images and images used in my css. The problem with this is that I don't have control over the expires headers (Rackspace files is what I'm looking into). See, say I h...

Google CDN setting up Cookies, why?

Isn't this sort of a thumb-rule? Shouldn't this be served from a cookie-less domain? Serve the following static resources from a domain that doesn't set cookies: * http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js Anyone know any alternative URL that Google would use to by-pass the Cookies? Edit: To anyone seeing...

Microsoft CDN - How about the .css and images of jQuery UI themes?

Hi I know that the usage of Microsoft CDN improves the website performance when talks about .js But what about the images? The styles of jQuery UI themes are hosted too in CDN, and all the images of the themes also. Using the styles of themes, and consequently images also, improves the performance like.js does? Thanks ...

MicrosoftMvcAjax.js - Is there a CDN for the MVC 2 version?

I found this link for the MicrosoftMVCAjax file for ASP.net MVC 1. Changing the url like so for version 2 yields a 404. Does anyone know what the correct URL is (if it exists)? If not - does someone know when we can expect this to be updated? ...

[nginx] Forcing user's browser to save files to cache

My website is a online music portal with online playing system. When user play a song, it is served by nginx server on port 8080 on my server. The problem is when the song has finished playing, the player repeats the song. But every time it replays, it makes another call to server and starts downloading the file again to play. Previ...

What's the best way to utilize jQuery-UI theme on CDN with local fallback?

Is there anyway to load jQuery-UI theme from CDN, but with local fallback? Similar to the javascript fall-back outline here? Google Hosted CDN with fall back ...

dealing with jquery files?

i have quite a lot of jquery files, like around 6 files, how can i sort them out. shall i put them all in one file, and upload it to a CDN, taking in account page loads etc. p.s. im also using google jquery cdn! ...

phpThumb to return HTTP error instead of ugly error image.

We are using phpThumb to resize images, create thumbnails from the original version stored in a DB We are using a CDN so that thumbnails are cached and we only pay the image processing once per image and per different size. This works pretty well. Our only issue is that when occasionally there is a temporary glitch phpthumb will produc...

jQuery via Google CDN best practices

I'm loading jQuery via Google's CDN using the following code. My main question is what will happen if a user hits my site and hasn't yet got jQuery pre-cached. Will he download the Google version and my own? How does concurrency here work? <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min....

Benefits vs. Pitfalls of hosting jQuery locally

We're currently pulling jQuery and jQueryUI (and jQueryUI CSS) libraries from the google CDN. I like this because I can call google.load("jquery", "1"); and the latest jQuery 1.x.x will be used. Now I am to pull the libraries locally because of security. I'm happy to pull them locally but I'm wondering what are some of the other benef...

Minify & Gzip vs Google CDN

Should I minify/gzip my Jquery with my other scripts on my page, or use Google CDN for Jquery & JQuery UI and gzip my own stuff. From what I can see its more likely to be faster to deliver from Google and there is a better chance the files will be cached already on the users machine, however its a couple of extra http request and atleas...

Image paths in CSS to support CDN

I am trying to deploy our images to a cdn. Currently the css has relative paths to images on our site. These paths will need to support the CDN image location. Does anyone have advice on how I can do this? Or if anyone has a good tutorial on deploying to a CDN. ...

External Javascript Interface on Flash Player not working on CDN (Cloudfront)

I have a flash player with an external javascript interface: reloadData() I'm calling that function via Javascript when editing information on the page - basically to keep data on the page and in the player in synch. The reloadData() function works fine when the player is hosted locally. When we move it to the CDN (Amazon Cloudfront),...

django image storage cdn

Hi. I have been using rackspace CDN for the last few months with django-imagekit and django-cumulus. And I am not really happy with the results. I seem to get load of errors because of timeouts etc. File "/www/django_test1/omu2/src/python-cloudfiles/cloudfiles/connection.py", line 347, in get_container return Container(self, cont...