FAQ Database Discussion Community


Why does CDN work, but a relative link does not?

css,cdn,font-awesome
I just asked this question: Why is Font Awesome only showing a square?. The gist of it is that my font-awesome.min.css file was not working. I was getting 404 errors when trying to load icons from it. Someone gave the ridiculous suggestion of changing: <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> to <link...

Can CDNs handle base64 encoded data?

image-processing,upload,xmlhttprequest,base64,cdn
I'm trying to make an app where I take pictures from users add them to a canvas, draw stuff in them, then convert them to a base64 string and upload them. For this purpose I'm considering the possibility to use a cdn but can't find information on what I can...

Does CDN know which website the client is visiting when fetching jquery.min.js or other resource from CDN?

javascript,cdn
Can CDN create some kind of statistics by tracking visitors of my site or they download needed libraries without sharing the URL of the page they visit ?

Rails 4 - Using CDN in Production

css,ruby-on-rails-4,cdn,production-environment
In my Rails 4 application, I'm using asset pipeline to serve my custom css/js files. I'm also using a couple of cdn providers for styling as well. Everything works fine in development; however, when I switch to production and try to deploy my application to my VPS, my app doesn't...

How to detect when one or more JS/CSS library fail to load (e.g. CDN)?

javascript,css,cdn
Premise: I've found these two answers but I don't understand how I can sistematically apply it for many libraries: Detect and log when external JavaScript or CSS resources fail to load HTML if statement to load local JS/CSS upon CDN failure I've an Augular 1.x application which depends on several...

ckeditor code snippet addon rails cdn

ruby-on-rails,ckeditor,cdn
I'm trying to use ckeditor with code snippet. The easiest would be to use the CDN and include it as a script tag. But the default ck editor doesn't have the code snippet plugin. If I download a custom package with code snippet included, then I have to modify all...

When choosing the domain name for a CDN, is there anything to be aware of? [closed]

dns,seo,cdn
There don't seem to be any SEO issues I can think of, so I'm wondering if there are any other issues that someone should be aware of when choosing a domain name for a CDN. Does the TLD matter? Are there certain things that will get a domain flagged by...

What happen when user location is near the Origin server more than CDN server?

cdn
When we use CDN, provider say that users will get static content on nearest server for faster loading speed... But if users location is near the origin server more than CDN server then what happen? Users will get cached content from CDN server or they will get content from Origin...

W3 Total Cache: .woff and .otf font files not uploading to CDN?

wordpress,caching,fonts,cdn,amazon-cloudfront
I'm using W3 Total Cache in WordPress to transfer all of my static files to CloudFront. All file types work properly, except for .woff and .otf font files. Here's how W3TC is configured to handle CloudFront: Any idea why I might be missing?...

Why use protocol-relative URLs at all?

html,http,https,cdn,relative-url
It's been an oft-discussed question on StackOverflow what this means: <script src="//cdn.example.com/somewhere/something.js"></script> This gives the advantage that if you're accessing it over HTTPS, you get HTTPS automatically, instead of that scary "Insecure elements on this page" warning. But why use protocol-relative URLs at all? Why not simply use HTTPS always...

Cloudflare CDN caching and google analytics doubts?

javascript,caching,google-analytics,cdn,cloudflare
I started using cloudflare CDN today. I am facing a few issues related to the service. I recently uploaded prism.js on my website but after a few hours decide to replace it with another version of prism.js. Now, the issue is that on some servers it loads new version of...

Sitecore Media Library & Azure CDN

azure,sitecore,cdn,sitecore-media-library
I am planning to use Azure CDN on the top of Sitecore Media library, from my understanding, Azure CDN does not support lazy loading and the only easy way is the root described in the Sitecore Azure CDN connector (basically creating MediaLibrary folder structure and files on the publish event)...

Azure region based WebApi for mobile app

azure,cdn
I'm currently developing a mobile app which will be pushed world-wide across the app stores. This app uses a WebAPI REST service as the backend which I currently have running on MS Azure in Europe (which backs onto a database also in Europe). My problem is, I'd like to create...

Refresh image in CDN immediately after upload to S3 with same file name

amazon-web-services,cdn,amazon-cloudfront
I'm using amazon Cloudfront CDN with S3 behind as the origin server to serve images like profile photos of users on my application. I store a user's profile photo with file name as <userId>.jpg. When the user changes his profile photo, how do I refresh the image in the CDN...

jQuery CDN Fallback Doesn't Work

jquery,cdn,fallback,google-cdn
I am using the solution from the second answer to this question Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail The solution says to use the following code to provide a fallback to a local copy of jQuery in case Google's...

Are CDNs that don't cache useful?

caching,cdn
Is there any benefit to (HTTP-) serving a non-cacheable resource over a CDN? (my use case: I'm serving a static Single Page App and I'd like to improve its load time, but I don't want index.html to get cached, because I want every new release to be reflected immediately. Specifically,...

how to set up a cdn?

caching,dns,cdn
I just bought a cdn from ovh.ie for my website example.com Here are the instructions. however, i am unable to set up it. Can someone guide me on how to set it up step by step? 1) Report the Backends (IP of your servers) ; 2) Declare the domain/sub-domains that...

path to image works in CDN but not in .css

c#,css,asp.net-mvc,asp.net-mvc-5,cdn
I don't get it. How does it works with CDN and not when I copy the CSS down to a local .CSS and reference it through BundleConfig.cs in MVC? I don't even know where to find the image. Works CDN: (Gives up/down arrow in datatable header) @Styles.Render("http://cdn.datatables.net/plug-ins/9dcbecd42ad/integration/bootstrap/3/dataTables.bootstrap.css") Doesn't work: .CSS...

Bootstrap CDN classes conflict?

css,twitter-bootstrap,cdn
I notice that when I use bootstrap in my project, some of the classes are applied to my code. Is there a way I can only use the bootstrap classes I want using CDN? Here's the code: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <!--...

How to use CDN in Spring MVC

java,jsp,spring-mvc,cdn,static-resource
I want to use CDN to serve static content like CSS, JavaScript and images in a project created with Spring MVC. But I didn't how to do it. I'm new to Spring and I have seen some posts on the web: JSP/Spring MVC and CDN? How to use property from...

Can you use Azure CDN without having to upload the files to Azure storage?

azure,windows-azure-storage,cdn
I have a website where I would like to cache the few images/stylesheets/javascript-files I have. Is it possible to have Azure CDN point directly on the files on my server, and then cache them, instead of having to upload them to an Azure storage?

Is my minified javascript conflicting with my AWeber javascript?

javascript,wordpress,cdn,minify,cloudflare
I’ve got a page with an AWeber popup form that’s intended to be made visible by clicking a “Get Music” button. You can see it here: http://www.radionowhere.net This was working fine until I set up Cloudflare as a CDN for my site and started using it to minify my CSS...

How to write a fallback for css files not loaded, loading too long and blocked? [duplicate]

javascript,css,cdn,conditional-statements,fallback
This question already has an answer here: How to fallback to local stylesheet (not script) if CDN fails 10 answers I am trying to write a conditional statement for my css files, because I am hoping to host them on CDN. Anyhow, I need to write a fallback for...

When should files be excluded from single minified JavaScript file?

javascript,html,performance,cdn
I've been reading about the benefits of limiting the number of requests to the server, and stringing all JS (and CSS) files into a single file. I've also been reading about the benefits of using files hosted by a CDN. Is it best to use individual requests for all possible...

BOOTSTRAP CDN Hosted, additional CSS

css,twitter-bootstrap,cdn
I'm using BOOTSTRAP via the CDN hosted by MAXcdn. But now I want to change something in the CSS files, but it's not on my server. So my question is, how to deal with additional CSS when you are embedding your files via a CDN solution? <!-- Latest compiled and...

Should I bundle a javascript framework with my application or use a public CDN?

javascript,caching,browser-cache,performance-testing,cdn
About two or three years ago, I would have summarised the answer to this as. compile all js to one file and minify. complie all css to one file and minify. load external scripts async. set cache control headers to the far future. fingerprint asset urls for invalidation. use your...

How to use Sementic UI cdn

cdn,semantic-ui
I have no previous experience of Semantic UI. How to include semantic Ui to html page using cdn? the cdn link is https://cdnjs.com/libraries/semantic-ui but how to use it. Please help

How to configure/extend bind9 to be geographical aware?

dns,cdn
After some research on how cdn works, I understand that there are mainly two categories of cdn's: 1. dns based; 2, router based. Dns based cdn holds a collection of ip address of one domain name, when a dns inquiry request arrives, it determines the nearest ip address according to...

Uploading to google app engine bucket and marking file as a public files

ruby,google-app-engine,cdn
It seems pretty straight forward to upload files to your preexisting google storage bucket. gsutil cp foo.txt gs://<bucket-name> However do I make my file be publicly available? So one is publicly available other is not. How do I change this programmatically, without having to do it from the web console?...

Magento fronted - file not found when admin hosted on different server

magento,admin,cdn
My website divided in 4 server. Fronted - front.mysite.com Admin panel - admin.mysite.com CDN for Images - cdn.mysite.com Database server When I upload new product images. It will auto sync on CDN server from admin server. So media folder exits on Admin and CDN server only not in fronted server....

External CSS Encoding Issue?

html,css,utf-8,cdn,cloudflare
My external CSS files were working fine until today. The images below are what it looks like using chromes view source. I must note that i am using charset utf-8 at the top of my css files. @charset "utf-8"; i have also tried Content-Type: text/css; charset=UTF-8 Also, i am using...

Purge a URL from the Fastly CDN via API call with curl or wget

bash,curl,wget,cdn,fastly
I use a bash script to deploy a static webpage which uses Fastly as a CDN. When /example.html gets deployed I would like to purge /example.html via their API within the bash script. I know that there is a good to go Ruby gem but I'd like to do it...

Remove trailing slash in .htaccess for CloudFront use

regex,apache,.htaccess,mod-rewrite,cdn
There are plenty of 'remove trailing slash' bits of regex here on StackOverflow, and they're all lovely, but they all have the same issue: they don't work too well with a CDN service like Amazon CloudFront. So, my setup is that www.example.com is Amazon Cloudfront, while my real website is,...

parser.js not found on Google CDN for dojo 1.10.3

javascript,ajax,dojo,cdn,google-cdn
I am using Google CDN in order to get DOJO. This the code I am using in my website. <script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.3/dojo/dojo.js"></script> When calling in my code module 'dojo/parser' like this define([ 'dojo/topic', 'dojo/parser', 'dijit/registry' ], function (topic, parser) { var instance; function Test() { } Test.prototype = { init: function...