Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cdn]

It stands for content delivery network or content distribution network and is a system of computers containing copies of data.

0
votes
0answers
12 views

How can I use full URLs for aggregated assets on a specific route?

My organization is using an external search application. The results are intended to be wrapped in a header and footer to mimic the appearance of the main website. I've created a couple of custom ...
0
votes
1answer
62 views

Disable Internal Page Cache and enable Internal Dynamic Page Cache with cloudflare CDN

Drupal 8.6.13 hosted on inmotion hosting VPS 2000 Website visitors/users are coming only from one country (Turkey) which is far away from the server location of inmotion hosting (USA). In below ...
0
votes
2answers
56 views

How to load absolute CSS and JS assets

I would like to load CSS and JS from https://static.example.com . The typical page contains: <link rel="stylesheet" href="/sites/default/files/css/css__wBfhyL83sORKzo__AgHv4HOGuOoSbIzIaa4clq9PXs....
1
vote
1answer
68 views

Local vs CDN libraries and how to check for available updates

For contributed Drupal modules, you can check whether you are using the latest version release of the module or not, by using any of the available methods such as Drush, Drupal console, Composer and ...
0
votes
0answers
12 views

CDN module using old url for background images when “Aggregate and compress CSS files” is enabled

I have switched our CDN provider and inputted the new URL in the settings page accordingly. Most of the site is working fine, except for background images (theme files) in the CSS which is referencing ...
0
votes
1answer
116 views

How to change URL images for CDN

I have a website in Drupal 7 with "N" images in Sites/default/files and I need move this images to CDN. This is possible? How can I do? Best regards!
2
votes
1answer
166 views

How do I exclude/blacklist admin paths?

Is there still a way to exclude administrative paths from using the CDN module in Drupal 8? It appears you have to use advanced mappings, but I don't understand how.
1
vote
1answer
672 views

JS not work in bootstrap subtheme

I am using bootstrap 3.6 sub-theme/cdn, I've added scripts[] = js/custom.js and I can see it in the source code of the page. But... javascript is not working. I copied some javascript code modules ...
1
vote
0answers
50 views

amazon s3 files storage

We want to move all files to amazon s3 storage and I'm wondering if it is enough to move sites/default/files to a new storage. I know there are modules which offer Amazon S3 support, but I would ...
0
votes
1answer
107 views

Drupal 8 css and images relative to root

I have the challenge that I want my site to be cache-able by and external varnish cache provider. Most of my page gets cached nicely, but elements like the ico file, images and css are written with ...
1
vote
0answers
183 views

CDN Module, CDN Mapping for multiple source domains

I have a Drupal 7 site with the CDN module working nicely (with MaxCDN). The CDN mapping is working perfectly for mapping all of my assets to the pull zone. Additionally, I have images on the site ...
3
votes
1answer
189 views

Do i really need to hack core to install Amazon S3 Module?

I want to run my site through Amazon's Elastic Beanstalk but to do so i need to configure an S3 bucket and the Drupal Amazon S3 module requires that i have to hack core. Surely there must be a way ...
1
vote
1answer
563 views

Make Wysiwyg Use CKEditor CDN

Is it possible to make the Wysiwyg module use the CKEditor's CDN for delivering the editor to the browser client?
2
votes
1answer
1k views

Font Awesome not working when using HTTP

We have 2 subdomains for a website in order to test our development before moving to production. This is our structure: subdomainA.mysite.com subdomainB.mysite.com mysite.com When I enter to ...
1
vote
0answers
600 views

Caching frontpage in cloudflare free?

I've set up cloudflare caching of Drupal's frontpage by adding a Page Rule for my Drupal base URL, with a "Cache Everyting" setting (otherwise, caching is enabled only for certain file extensions). I'...
1
vote
1answer
83 views

file_create_url() equivalent in a javascript file?

I am dynamically loading a script using $.getScript() which works fine, but when using the CDN module it comes from the webserver, instead of the CDN. Is there a way to get the correct CDN path in JS, ...
0
votes
1answer
18 views

How to have node id value set depending on some other id?

I have database table which I need to import it in drupal database (basically create a node for each row of database table ) . The non drupal database has mim Id . I want to create a node which would ...
0
votes
1answer
67 views

Accessing files from a local cdn

I know that drupal comes along with 2 default stream-wrappers(public and private). What I want to achieve is to have my images placed in an another server, where they can be accessed by a url similar ...
0
votes
1answer
2k views

Using own Bootstrap 3 files

I would like to know how I can host my own Bootstrap 3 files (js, css) in the Drupal 7 Bootstrap 3 theme. I know I can deactivate CDN hosting inside the theme settings, but I can't get it to work. Can ...
1
vote
1answer
450 views

May I use Bootstrap-CDN on Subtheme for production site?

Follow up of my other question with less files ;-) As I don't need de less files on production site, could I then switch to BootstrapCDN for js files? Or would it overrule style.css too? Thx for ...
1
vote
0answers
448 views

Drupal 7: Picture Module, Amazon S3, CloudFront CDN setup?

Has any of you successfully set up the Picture Module for responsive images to work with Amazon S3 and CloudFront CDN? I have been successful setting Drupal up to work with Amazon S3 and CloudFront, ...
1
vote
1answer
443 views

Upload images in external server

I work between two servers, and I use one for development and the other for deployment. It’s very easy because I can tell the development one to use the database of the deployment sometimes. What I ...
0
votes
2answers
706 views

Amazon S3 for Stage / Production only?

Is it possible to use the Amazon S3 module for stage / production only? The site I'm building, is using features. So when I export my fields for the content types, I either have the option to select ...
0
votes
1answer
298 views

Drupal 7 completely offline, avoid Boostrap via CDN

I need to move my Drupal site to completely offline environment. The bootstrap library takes the correct Bootstrap JS and CSS from sites/all/libraries, but there is a CDN call to download Bootstrap ...
2
votes
2answers
3k views

How to update to jQuery v1.11.1?

I'm trying to implement a full screen bootstrap carousel base on this tutorial. He mention to use the jQuery version 1.11.1. And I was wondering what is the best way to upgrade to this version. I'm ...
0
votes
0answers
485 views

Warning: Invalid argument supplied for foreach() in image_style_create_derivative() (line 902 of image/image.module)

I'm uploading my images to Rackspace cloud CDN using the following code: <?php if (!empty($entries)) { foreach($entries as $value) { $container_id = $value['cid']; $nid = $value['nid'];...
0
votes
0answers
2k views

Iconfont not displaying when CDN is enabled

I am using the Icon module to display iconfonts on my Drupal 7 site and they work fine until I enable the CDN module. Upon enabling the CDN module, the iconfonts are displayed as blank squares and the ...
6
votes
1answer
2k views

CDN Module and Image Styles

Yesterday I installed the CDN Module using Amazon Cloudfront and magically everything worked as expected. I was quite happy. This morning I was showing off my new improved CDN enabled website to a ...
1
vote
1answer
862 views

CKeditor via CDN optional plugins

The latest Drupal Ckeditor Module 1.14 loads the Ckeditor library via CDN. The table on http://ckeditor.com/presets-all shows the 5 possible packages to be used via CDN. I am using the Full-all ...
0
votes
1answer
205 views

CDN not working on multilingual site

I have a site that is multilingual using path prefix, for example I can have: example.com/en example.com/es example.com/fr If the user goes to example.com, a language selection page appears (using ...
2
votes
1answer
471 views

CDN JS — cannot seem to weight it

I'm adding external JS in my Drupal 8 site (//cdn.leafletjs.com/leaflet-0.7.2/leaflet.js) and I cannot seem to weight it using hook_js_alter. I can weight it if I throw it in a themename.libraries.yml ...
0
votes
2answers
217 views

Boost Cache, External CDN?

I have been thrown into a Drupal 6 environment, helping a client whose site has been running terribly for some time now. Among other issues, they had a ton of traffic and were serving it all locally, ...
4
votes
1answer
3k views

How do I save and retrieve CKEDITOR media (images and video) on a CDN?

I am using CKeditor, and I need to add media in content. I have enabled the media in the CKeditor configuration. Then I upload an image: The image is being added: Checking the path for the image : ...
1
vote
1answer
1k views

Changing video content type (mime type) in CDN

I am using media module to save media in CDN. To play videos, we are using jwplayer in Drupal 7. Jwplayer throws error in IE, If video is not of content type [mime type] video/mp4. I have changed the ...
0
votes
1answer
544 views

Drupal 7 CDN Module not altering URLs for themed Pages

I have themed a page on my Drupal 7 website by mentioning the template file as page--node--.tpl.php The CSS and Images which are coming on this page are getting picked from the site itself and not ...
0
votes
1answer
983 views

Any good CDN integration with Drupal?

I'd like to set up a simple gallery for users to upload pictures onto my D7 site, but uploading a bunch of images is sure to make my site run slower and my hosting costs go up. So I'm looking at a CDN ...
0
votes
1answer
70 views

how to create all dynamic ubercart product images for CDN module to sync

I have enable CDN module to handle image/css and js requests from a static server. As drupal creates product images for different styles dynamically there are many products whose images are not ...
2
votes
1answer
172 views

jquery.js from CDN sources

I hope use a CDN source as default, which doesn't load the local jquery.js while the CDN is OK. If the CDN doesn't reply, load the local jquery.js. I have writted this in my template.php. <script ...
3
votes
1answer
824 views

Flood table not respecting X_FORWARDED_FOR [closed]

The flood table IPs are listing the IP of the load balancer, not the one of the request, which is in the X_FORWARDED_FOR header. I have the 'reverse_proxy' set to TRUE in setting.php, and it works ...
1
vote
1answer
530 views

drupal CDN module not altering URLs

I'm using Drupal 7 on an Ubuntu VPS, I'm trying to setup CDN module with Rackspace cloud files. I'm using file conveyor and the whole setup going well. the only problem I have that Drupal CDN module ...
0
votes
1answer
624 views

Enabling CDN breaks entire site (no CSS, JS)

I'm using AWS CloudFront on my Drupal 7 site, and until now I've had no issues with it. Pushing an update live a few weeks ago broke all my CDN links, even ones that were there before my update (file ...
1
vote
2answers
319 views

Drupal 7 CDN whitelist issue

My Drupal 7 site is working nice and most of my static files are served via CDN. I use CDN module with Origin Pull however CDN didn't pull the files from my misc folder where there are small png icons ...
0
votes
0answers
479 views

CSS Files served from https Domain instead of CDN domain

I setup a Drupal site on two domains (www.example.com and blog.example.com); I am using the Domain module. I also setup a fake cdn.example.com domain on the same DOCUMENT_ROOT folder; I am using the ...
2
votes
1answer
446 views

CDN module enabling “Far Future expiration” breaks whole site theme drupal 7

CDN module Version: 7.x-2.6 component -- Origin Pull mode — Far Future expiration I am using CDN module on drupal 7.22. We are using custom theme where adaptive theme is as base theme for all ...
2
votes
0answers
153 views

How to serve files from a second server in Drupal 6? [closed]

I have bandwidth limitations for a busy and image-heavy D6 site so I decided to outsource my /webroot/site/default/files to my second server which is almost idle. I tried to do so using CDN module, ...
5
votes
1answer
845 views

How to configure settings.php for Drupal site with Varnish and CDN?

I am completely new to the back-end issues, so I would appreciate any detailed answers with explanation. We need to configure our settings.php file so that it works with Varnish and CDN. Currently, ...
4
votes
1answer
216 views

CDN Module and Canonical Domain

I have a site where I am using the CDN module in origin pull mode with Amazon CloudFront. Apache is configured so Drupal will handle www.example.com and static.example.com. Is there a way to get ...
1
vote
1answer
2k views

CSS not being loaded from CDN (CloudFiles)

I've got CDN installed and configured and I've copied all of my css up to the CDN. The CSS urls change from this (using my hosts IP address): @import url("http://xxx.xxx.xxx.xxx/modules/system/...
0
votes
1answer
33 views

Seperate Drupal instance as files server for other Drupal instances

My task is to create files gallery which is files library for other Drupal instances. Other instances can upload files to library and browse them. File metadata are stored in library (A) and client, ...
0
votes
1answer
455 views

Use CDN version of Video.js

Until the Video JS Drupal project supports the CDN version, how can we go about overriding the default URL in a custom theme? It looks like there is a plan to include it in the future but not yet ...