Questions tagged [cdn]

Content delivery network, a distributed system of servers deployed in multiple data centers.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

How to change Route respond To A specific Path?

To increase site loading time and decrease the pressure on my website I have decided to host files(js,css,images) in other hosting, like google storage or amazon aws, problem is that I already ...
0
votes
0answers
11 views

How to optimize images that upload to S3 and using Cloudfront as CDN?

my site is using AWS Lightsail service. I am using WP Offload Media Lite plugin to using Cloudfront as my CDN and upload all my images to S3. But I got a problem with the image's size, they are ...
0
votes
0answers
18 views

What CloudFront settings are required for WordPress now (mid-late 2020)?

I'm having issues getting current WordPress (5.5, but confirmed back until at least 5.2) working behind CloudFront, and am wondering what the current best practice is for Behavior configuration. ...
0
votes
1answer
15 views

How to know if I have activated Cloudfare successfully?

I am using Siteground hosting and Cloudfare free CDN. On cloudfare website I get this - and on Siteground I get this - I have updated the CNAME records as asked, several times. Please guide me: Is ...
0
votes
0answers
24 views

Images are sourcing on origin and other are sourcing cdn why this happen?

to be clear this one is strange all src is in the cdn <img src="https://d2i0niq0vipxhj.cloudfront.net/wp-content/uploads/2020/04/mother-with-her-sick-son-3985226-persistent-cough-in-kids-covid-19....
0
votes
0answers
156 views

How to fix Autoptimize and Cloudflare interaction

Yesterday I was trying to change just one option of the WP Autoptimize plugin (inline and defer css) to avoid it render blocking. This was the process of it: I extracted the critical CSS with an ...
0
votes
0answers
22 views

Exclude dynamic css or js from CDN Wordpress

I've set a CDN via KeyCDN to an Azure endpoint. The problem is that I have a search icon which is related to vantam builder specific file all.css?version=blablabla. When I specify it as excluded, it ...
0
votes
0answers
25 views

How to setup a CDN with hidden wp-content/uploads

Directory Browsing is disabled / folders are hidden. So the CDN I want to setup can't access the files. Is there any workaround here? Or is it safe to make the wp-content/uploads public accessible?
0
votes
0answers
83 views

Nonce timing out when cache is in use

I have implemented a plugin that allows an individual to search data that is available from the plugin and receive a list of results back from that search. Searching is the only act that can be ...
1
vote
1answer
24 views

Is It Possible to Upload Certain Attachment Files To A Remote Server

My Situation I'm developing a book-store WordPress website where you can purchase and download books in PDF format. I don't want to use the local space for file storage (the host provider offers ...
1
vote
1answer
188 views

Jetpack's photon causes local site to try and serve images from Wordpress CDN [closed]

On my remote site I have Jetpack's site accelerator (formerly Photon) turned on. So all the images are cached and then served from the Wordpress CDN. When I ported the site to my local machine, ...
0
votes
1answer
49 views

Fully caching Wordpress site by CDN (eg. Cloudflare)

Because of random high traffic on our website, for which even total cache is not good enough (~ 1000 req/s) we would like to put CDN in front of the whole site. Cloudflare CDN caching seems to do the ...
0
votes
5answers
709 views

Warnings even when the WP_DEBUG set to false

The link https://vreqenz-stream.de/shop/ throws warning when opened on some devices and not on others. I thought it may be a cahce issue but I have cleared cache from WP-rocket and also browser. Just ...
0
votes
1answer
584 views

Storing WordPress Media Library Uploaded files onto a separate domain

We are looking forward to offload assets from our website (60GB onto a 8TB/mo accessed website), to a separate webserver that will be there only for serving images from a separate domain. I know that ...
0
votes
0answers
27 views

Alternatives to hosting WordPress post content?

Our posts are very verbose HTML documents that average 5MB in file size. Although the WordPress database does a decent job of serving these files, it costs us a lot in storage hosting. Due to this, is ...
0
votes
1answer
1k views

i1.wp.com url problem (Jetpack not installed)

I added the following code to the functions.php file add_filter( 'avatar_defaults', 'new_gravatar' ); function new_gravatar ($avatar_defaults) { $myavatar = 'link'; $avatar_defaults[$...
0
votes
1answer
509 views

Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN

I followed many tutorial about leveraging browser caching nevertheless I couldn't configure it succesfully, in fact GTmetric (PageSpeed and YSlow) notified me many static file that don't have a cache ...
1
vote
2answers
2k views

Host images only on CDN

i have developed a wordpress website which is hosted on AWS. The website is working fine but since i wish to make it an e-commerce website, there are going to be a large number of images. The hosting ...
1
vote
0answers
76 views

WP-Stateless: Multi Regional Vs Regional Storage

if I upload all wp-content/uploads to google cloud storage and serve from there directly(stateless), is there any point to create multi regional google cloud storage? Other than increasing unnecessary ...
0
votes
0answers
211 views

Serving cache from multiple domain names

I'm using W3 total cache for caching and I've many js files with sizes larger than 100KB in the cache folder. My idea is to serve cache folder from different subdomains (All files are hosted in the ...
0
votes
0answers
35 views

Uploads from site on Server A uploaded on Server B (Like sort of CDN)

Short overview of the situation: On server A there's an site. Server B is used for files. I want that uploads made on server A (running one wordpress site) are uploaded on server B. I've changed the ...
-2
votes
2answers
166 views

How should we improve the website speed? [closed]

We are OK with the current performance but for the past 2-3 weeks, Google search console shows that none of the pages are indexed. Its actually indexed though. https://www.softwareproductguide.com/ ...
0
votes
1answer
2k views

How to set up the REST API to refer to media on a CDN

I'm using the Wordpress as a headless server to supply the content for a react based web app, and I'm trying to get the media served via a CDN. I have set up the W3-Total-Cache plugin which is ...
0
votes
0answers
38 views

Render Shortcode in Lightbox Gallery

I am trying to have a video gallery, but I use HolaCDN. Their wordpress plugin lets you insert videos using a shortcode, and that shortcode inserts the necessary javascript to render their video ...
0
votes
2answers
2k views

Change Image URL to a CDN

Running NGINX, Wordpress 4.75 after upgrading from a way older version of Wordpress, our images are being served locally and I would like to change that to our CDN. In the past images that were ...
2
votes
0answers
121 views

CDN + WP Admin Query - .htaccess redirection

Say I have a website at https://www.example.com and I am using a CDN. Now if I want the CDN URL to be https://www.example.com/assets/... and not https://assets.example.com, then what should I do? Is ...
0
votes
0answers
507 views

Css style removed but still showing via CDN even after clearing browser cache and purging all caches for site

I have an issue where the mobile menu (Must change browser size to mobile width to see) is showing one of its lines as "display:none" via the stylesheet. So the hamburger icon is wrong. See screenshot....
0
votes
1answer
926 views

I am using CloudFront and Cloudflare at the same time. Is that good? [closed]

I'm running my site using two CDNs. I primarily just use Cloudflare for security, and CloudFront for complete CDN.
0
votes
2answers
504 views

how optimize CDN without using plugins

i need help for optimizing my wordpress website without using plugins incloding wp-total-cache or wp-super-cache.check this link https://gtmetrix.com/reports/akhbartop.ir/fF37Flwa my website needs ...
0
votes
1answer
563 views

Missing dns-prefetch link when using “nested” wp_register_style

Given this script: function register_styles(){ wp_register_style('google-fonts', '//fonts.googleapis.com/css?family=Oswald|Open+Sans'); wp_register_style('bootstrap', ...
1
vote
0answers
60 views

How to configure sub-domain for images on Debian Apache VPS?

in shorts: I want this https://surpriseazwebservices.com/serve-images-from-sub-domain-in-wordpress/ BUT, I have VPS with Debian runing Apache and WP. I follow all steps from tutorial and not working ...
-1
votes
1answer
30 views

All my cdn links are automatically set to relative(ie //: instead of http://). why? [closed]

All The links declared are set to :// instead of http:// even though they have https added in the code. This is causing a issue with AMP page validation. Is there a way i can force http:// here?
2
votes
1answer
4k views

Deregister WordPress jquery on specific page

Note: Removing jQuery that comes with Wordpress is not recommended. Use caution if implementing the solution below I have a few pages that will not require jQuery to be loaded in the header. I'm ...
4
votes
2answers
992 views

What is the problem if I use CDN in my WordPress parent theme(built using bootstrap)?

When I run "themes check" , it recommends not to use CDN. I am using Bootstrap CDN this way function underscore_bootstrap_wp_scripts() { /* bootstrap and font awesome and animate css */ ...
-2
votes
3answers
203 views

To what degree can use of caching-plugins and a CDN boost WordPress performance? [closed]

I realize that this question is being asked in a very generic fashion, without detailed specifics of the configuration in question, and thus I am not expecting answers that go beyond anything but ...
3
votes
1answer
8k views

Add Font Awesome Embed CDN Script To WordPress

This is my original code that pulled Font Awesome icons, which is placed in my functions.php file: wp_enqueue_style( 'prefix-font-awesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.1/css/...
1
vote
1answer
719 views

How to serve wp-includes javascripts from CDN? [duplicate]

My goal is very simple to describe: I want all JS from wp-includes to be served via my CDN (cloudfront to be specific). This just means I need to change the domain from: http://mywebsite.com/wp-...
1
vote
0answers
477 views

change url for static files in /wp-admin with a cdn url

I recently purchased a CDN and used a plugin to change the site url for all static files in the "/wp-content" and "/wp-include" folder to the cdn url. Is there a way to change the site url for ...
0
votes
1answer
389 views

How do I change the WordPress Address URL only and still login to wp-admin

The story so far: I added a distribution on Amazon CloudFront (randomString.cloudfront.net), then added a cname (cdn.mydomain.com) and finally created a cname record on the DNS server - pointing cdn....
2
votes
2answers
18k views

COOKIE_DOMAIN setting confusion

I'm upgrading my website and it's using WordPress. I'm using sub-domain cdn for CDN and it needs to be cookieless. Currently my website is a multi-network of multisites (both are subdirectory ...
0
votes
0answers
129 views

Moving CDN jQuery to footer does not work?

What I want to achieve: Change the default JS to Google's CDN --> this works Move the Google CDN to the footer --> this does not work My code: function my_init() { if (!is_admin()) {...
0
votes
1answer
224 views

How to use Virtual Private Server as Wordpress Image CDN

I have 2 Private Server and 1 Shared hosting. 1 of my private server is not much in use, but my shared hosting is getting overloaded with images running wordpress. I want to set my own CDN with my ...
0
votes
1answer
856 views

W3 total - leverage browser caching not working with cdn delivered images [closed]

I'm using W3 total cache for a while now with all my Wordpress installations. Just started to use CDN and I got some problems with leverage browser caching of my files (mostly images) that are served ...
0
votes
1answer
119 views

Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?

I'm new to WP development and I don't have the experience to know if I should place CDN links in a JS file and enqueue it or use a nifty plugin such as this one. What is best practice? What should I ...
1
vote
1answer
692 views

Enqueueing a script and a style sheet not working

I am trying to enqueue both a child theme style sheet and a child theme script. I need to enqueue the script because I put CDN links in there for Bootstrap. I know my enqueue isn't working correctly ...
0
votes
2answers
203 views

Change WordPress Resource URL

I have recently finished developing my latest WordPress theme for my own site and as usual I was going to use maxcdn and w3tc to make it faster! However my Hosting company have started up their own ...
-1
votes
2answers
2k views

Can not login after moving to cloudflare and adding rules

I've setup my website with CloudFlare. In the settings, I've added some rules to make it faster. Since then, when I try to login the Dashboard. I get the following message: ERROR: Cookies are ...
2
votes
2answers
4k views

Change WordPress' media upload URL?

This isn't the usual "How do I change the media upload folder?" question. Our entire site is run through a CDN. The CDN drops POST requests with a 5-6MB file so the WordPress uploads fail. I can work ...
1
vote
2answers
587 views

Can a Wordpress blog be entirely hosted on a CDN if cached?

I am developing a Wordpress blog for a client who believes that more than 1m pageviews will be served every month. Unfortunately his server resources are very limited so I was thinking of hosting the ...
0
votes
0answers
47 views

Is it possible to change the images source that are shown in the admin side?

All of my images are in a CDN. On the website that's where the images are coming from but on the admin side it is pulling them from the server. Is there a filter or action I can use to change the ...