The lean CDN plugin for WordPress.
Serve JavaScript, CSS and images through any CDN URL you choose. Enter one URL, activate, done — no external accounts, no API keys, no tracking.
What it does
Asset URLs are automatically rewritten to your CDN.
Instead of loading JavaScript, CSS and images from the WordPress origin, the Stone & Water CDN plugin transparently routes all static assets through your CDN URL. The origin server is offloaded, visitors load from the nearest node — shorter load times, better Core Web Vitals.
URL rewriting at filter level
The plugin hooks into the native WordPress filters script_loader_src, style_loader_src, wp_get_attachment_url and wp_calculate_image_srcset. Plus an optional output buffer that catches inline HTML assets that don't flow through standard hooks.
- Scripts & styles via loader hooks
- Images via attachment API
- Responsive images (srcset) fully supported
- Inline HTML buffer for theme direct references
Scripts & styles
All assets registered via wp_enqueue_script and wp_enqueue_style are picked up automatically — no theme or plugin changes needed.
Images & media
Featured images, galleries, Block Editor images and Media Library URLs are delivered via the CDN. WebP and AVIF included.
Responsive (srcset)
The different size variants of responsive images are rewritten too — critical for mobile performance and Lighthouse scores.
Secure defaults
WP-Admin and the login page are excluded by default — the CDN delivers only frontend assets, the backend stays untouched.
Granularly configurable
File-type whitelist and path exclusion list as comma-separated input. Full control over which assets go through the CDN.
GDPR-friendly
No account required, no telemetry, no external scripts. You control which CDN delivers your assets.
Here's what it looks like in WP-Admin
Eine Einstellungsseite — mehr nicht.
No cloud console, no onboarding wizard, no seven nested tabs. After activation, find it under Einstellungen → Stone & Water CDN exakt das hier:
Stone & Water — CDN for WordPress v1.0.2
CDN-Konfiguration
Filter & Ausschluss
Erweitert
Schematic representation of the plugin settings. The actual design in WordPress Admin uses our PIM CI with indigo accents — functionally identical.
When does it pay off?
Three setups where the plugin gemacht ist.
Not every site needs a CDN. But if you see yourself in one of these scenarios, the performance gain is typically measurable — and setup with our plugin takes under five minutes erledigt.
WooCommerce mit vielen Produktbildern
/woocommerce/shop
Shops with 500+ products and 4-8 gallery images each are classic origin killers. Every category page triggers 50-100 image requests against your WordPress host. With CDN offloading, die Origin-Last drastisch — und die Galerieseite lädt auf Mobilgeräten oft 2-3× schneller.
Internationales Blog oder Magazin
/magazine/global
When your readers come from multiple continents, geographic distance to the origin is the biggest latency factor. A CDN with global PoPs delivers your images, JS and CSS from the nearestelegenen Edge — egal, ob die Anfrage aus Tokio, São Paulo oder Stockholm kommt.
Multisite mit mehreren Domains
/multisite/network
WordPress Multisite with 5-20 subsites often shares theme and plugin assets. Instead of setting up a separate CDN account for each site, the plugin runs per-site with its own CDN URL — you can decide per-site whether and which CDN to use.
Recommended CDN provider
No CDN yet? We recommend Creoline.
You still need a CDN to connect with the plugin? We've worked with Creoline from Germany for years — fast servers in Europe, GDPR-compliant hosting, transparent pricing. Exactly what you need for a productive WordPress setup.
Content Delivery Network from Creoline
Pull-zone set up in minutes, fair traffic-based pricing, servers in German data centers, and personal support. The ideal companion to the Stone & Water CDN plugin.
View CDN at CreolineNote: The link contains a referral reference. You don't pay a cent more, we receive a small commission — this helps us provide plugins like this CDN one for free.
Installation
Active CDN in three steps.
Less than five minutes from download to the first delivered file. Assuming you already have a CDN pull-zone set up — if not, Creoline (see above) gets you there in about the same time.
Upload plugin
Download ZIP, in WordPress unter Plugins → Installieren → Upload plugin install and activate. No FTP steps needed.
Enter the CDN URL
Under Settings → Stone & Water CDN, enter your CDN base URL — e.g. https://cdn.your-domain.com.
Activate & test
Toggle "CDN rewriting active" on, save, open the frontend, check the page source — all asset URLs now point to your CDN.
Built on solid technology
Built on WordPress standards.
No core patching, no external dependencies, no bloated frameworks. The plugin uses official WordPress filter APIs and stays lean — the whole ZIP is under ten kilobytes.
Compatibility
Tested with current WordPress and PHP versions.
WordPress hooks
Standard filters — no core modifications:
Cache plugins
Works alongside all common caching solutions:
Data privacy
No tracking, no telemetry, no external scripts. Options are stored only in your WordPress database (wp_options) and removed cleanly on uninstall.
Download
Get the CDN plugin from Stone & Water.
Free, no account, no email — just download and install in WordPress. Open source under the GPLv2 license. Source on Gitea, pull requests welcome.
Alternative: Source code auf Gitea ansehen · Feel free to open an issue for bugs or feature requests.
Frequently asked questions
Answers about the CDN plugin for WordPress.
What does a CDN do for WordPress?
A Content Delivery Network distributes your static assets — JavaScript, CSS, images, fonts — across servers worldwide. Visitors load files from the nearest node instead of from the origin server. This lowers Time-to-First-Byte, offloads your web server, and measurably improves Core Web Vitals (LCP, FCP). Google ranks fast pages better — so a CDN is also an SEO tool.
Do I need an account with the plugin vendor?
No. The Stone & Water CDN plugin is a classic, free WordPress plugin without license servers, activation keys, or cloud dashboards. You install the ZIP, enter your CDN URL, and that's it. We track nothing, don't need your email, and don't check licenses.
Does the plugin work with any CDN provider?
Yes — as long as your CDN can act as a pull zone (fetching assets from origin on demand and caching them). That covers nearly all common providers. We recommend Creoline as a European provider with GDPR-compliant hosting and personal support.
Are responsive images (srcset) rewritten too?
Yes. The plugin hooks into the wp_calculate_image_srcset filter and rewrites all variants — including the different image sizes for mobile, tablet, and desktop — to the CDN URL. This is critical for mobile performance and good Lighthouse scores.
Are admin and login areas redirected too?
By default, no. For security and stability reasons, wp-admin and wp-login.php are excluded — you don't want admin logins tunneled through a CDN. The exclusion list is configurable if you have special cases.
Is the plugin compatible with caching plugins?
Yes. URL rewriting happens at the WordPress asset-loader filter level — compatible with WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache and similar. With a page cache enabled, the rendered HTML output (with rewritten URLs) gets cached — they work well together.
What if images are missing after activation?
Then your CDN pull-zone isn't configured correctly yet. Check: does the CDN host point to your WordPress origin URL? Can you open an asset URL like https://cdn.your-domain.com/wp-content/uploads/2026/01/image.jpg directly in the browser? Is HTTPS active on the CDN domain? If those check out, the plugin handles the rest.
What data does the plugin store?
Only your plugin config in the WordPress database (table wp_options, Key staw_cdn_options). No logs, no telemetry, no external requests. On uninstall, the options are removed via uninstall.php sauber entfernt — rückstandsfreie Bereinigung garantiert.
Who's behind it?
Made by Dominic at Stone & Water.
This plugin is not an anonymous side-project. It comes from a Shopware agency in Schöppingen with almost two decades of e-commerce experience — and is used daily in real customer projects.
Changelog
What's new.
- Display-Name auf "Stone & Water — CDN for WordPress" umgestellt (vorher "Staw CDN")
- Admin menu renamed to "Stone & Water CDN"
- readme.txt updated with new branding
- Improved inline-HTML rewriting with more robust handling of query strings and URL encoding
- New plugin action link "Settings" directly on the plugin overview
- Sanitization of stored options unified
- Initial release with URL rewriting for scripts, styles, images, and srcset
- Admin settings page with toggle, CDN URL, file types and exclusion paths
- Optional output buffer for inline-HTML assets
- Clean uninstall via
uninstall.php
Ready?
Faster WordPress in five minutes.
Download the plugin, upload to WordPress, enter your CDN URL — and your visitors will load assets from the CDN node closest to them instead of from your origin server.