Questions tagged [cdn]
Content delivery network, a distributed system of servers deployed in multiple data centers.
107
questions
0
votes
0
answers
7
views
How to log results after uploading files to W3TC cdn? [closed]
I am trying to programatically print some logs in a file after uploading files to W3TC CDN.
Files are uploaded to de CDN after a post is saved.
I am trying to make the following wrapper function to ...
0
votes
0
answers
17
views
I'm planning to offload my WordPress Media Library to a CDN? Would you recommend it, and why (or why not)?
I'm currently setting up a brand new hosting server for a client of mine that owns a news site. One idea that was suggested by the team was to offload the Media Library files entirely onto a CDN. ...
0
votes
0
answers
31
views
Why does using different URLs in WordPress settings cause a "Publishing failed, you are offline" error?
In the WordPress General > Settings, when we update the WordPress address and the Site address to two different URLs We're not able to update/create posts. It is throwing an error saying "...
0
votes
0
answers
21
views
"Virtual" image in WP Media Library (external URL)
We are using a CDN in an external system (DAM) to store all of our images, and I am trying to find a way to integrate this to WordPress.
The functionality I would like to achieve is:
Use the WP Media ...
0
votes
1
answer
56
views
Request initiator chain contains old CDN
I changed the domain of my wordpress page (everything else works fine so far) and also the CDN provider, still in my dev tools I'm getting an error for one js-file
I use Autoptimize and WP Super ...
0
votes
1
answer
73
views
Has the table name in SQL for Wordpress changed from WP_posts to WPCS_post?
I ran this query in SQL in PhyMyAdmin
UPDATE wp_posts SET post_content = REPLACE (post_content,'https://www.example.com/wp-content/uploads/','https://www.cdn.example.com/');
Though it ran, then gave ...
0
votes
0
answers
314
views
Images not appearing after applying Smush
Upon enabling the Smush plugin to compress images, my sites logo and a few other images are not loading. I have tried resizing the images or disabling Bulk Smushing and Lazy Load to no avail. Here is ...
0
votes
1
answer
126
views
wp_mail Allow Remote Attachments from CDN
I came across a problem with WP_Mail for sending form submissions with file attachments. Our site uses a CDN, so everything uploaded to the site, whether images and media by site builders or documents ...
0
votes
0
answers
18
views
Prepend to all image URLs with PHP, only for mobile devices
Is there a way, with PHP, to prepend my CDN service's URL to all of my images only when using a mobile device?
The reason I ask to do it with PHP is because my site is AMP compatible, which doesn't ...
0
votes
0
answers
37
views
Best practices for the cache of a static WordPress site, including CDN Cache and Cache Plugin
I am studying the best practices for the cache for a Wordpress site. THe Wordpress site is:
Not updated frequently(maybe once in a week).
The update is only initiated and controlled from me, it does ...
0
votes
1
answer
207
views
Is there a way to ensure local fonts load from CDN when CDN is enabled?
I've set up a WordPress site with one local font. It is stored in the a fonts folder in the child theme. It is loaded with the following in the child theme style.css
@font-face {
font-family: '...
0
votes
0
answers
83
views
reWrite wp-content url to point on my cdn
I want to serve wp-content from my digitalocean Spaces CDN. I want to do this without a plugin. In the wp-admin/options.php the only URL I can change is upload_url_path.
0
votes
0
answers
528
views
is there a way to display product gallery images via cdn
I have three issues that require a solution please. Is there a way to show product gallery images externally using a cdn but instead of pointing to that exact image url only point to the folder that ...
0
votes
0
answers
38
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
1
answer
44
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 ...
1
vote
1
answer
275
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
1
answer
330
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
1
answer
97
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
5
answers
2k
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
1
answer
1k
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
0
answers
28
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
1
answer
2k
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
1
answer
676
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
2
answers
3k
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
0
answers
96
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
0
answers
325
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
0
answers
38
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
2
answers
566
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
1
answer
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
0
answers
50
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 ...
1
vote
2
answers
5k
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
0
answers
133
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
0
answers
725
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
1
answer
1k
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
2
answers
639
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
1
answer
706
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
0
answers
67
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
1
answer
39
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?
3
votes
1
answer
6k
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
2
answers
1k
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
3
answers
260
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 ...
4
votes
1
answer
10k
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
1
answer
939
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
1
answer
767
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
1
answer
498
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....
4
votes
2
answers
29k
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
0
answers
180
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
1
answer
394
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
1
answer
867
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
1
answer
124
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 ...