=== MariCDN by MariHost ===
Contributors: marihost
Tags: cdn, maricdn, performance, speed, cache, marihost
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.1
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Supercharge your website performance with MariCDN by MariHost. Enjoy faster loading times globally through seamless CDN integration.

== Description ==

**MariCDN by MariHost** is a simple yet powerful plugin that connects your WordPress site to the MariCDN platform — a performance-focused content delivery network (CDN) built and backed by [MariHost](https://marihost.com "MariHost – Premium Hosting Provider").

With just a few clicks, you can rewrite your site’s static asset URLs to serve them via our high-speed CDN infrastructure, dramatically improving site speed and load times for your visitors around the world.

= Key Features =
* One-click integration with your MariCDN pull zone
* Automatic URL rewriting for static assets (CSS, JS, images, fonts)
* Optional test mode to preview before going live
* One-click cache purging for changes
* Custom file type and directory control
* HTTPS support and CDN domain flexibility
* Clean, minimal and optimized code

= How It Works =
After configuring your CDN URL, the plugin will automatically update asset links across your site to use the CDN instead of your server. It also provides a convenient interface for purging cache and testing integration.

= Requirements =
* PHP >= 7.2
* WordPress >= 5.0
* An active [MariCDN](https://maricdn.com "MariCDN Website") account with at least one pull zone created

= About MariHost =
[MariHost](https://marihost.com) is a premium hosting provider offering high-performance solutions including web hosting, CDN, cloud services, and more.

== Installation ==

1. Upload the `maricdn` folder to `/wp-content/plugins/`
2. Activate the plugin from the WordPress dashboard
3. Go to Settings > MariCDN
4. Enter your MariCDN domain (e.g. `https://yourcdndomain.maricdn.com`)
5. Enable Test Mode to preview changes
6. Save settings and inspect site assets
7. Disable Test Mode to go live

== Frequently Asked Questions ==

= Do I need a MariCDN account? =
Yes. You need a valid MariCDN account and pull zone to use the plugin.

= What directories are optimized? =
By default, `wp-content` and `wp-includes` are rewritten to use the CDN.

= Are PHP files included? =
No. PHP files are excluded for security. You can configure other file types in the settings.

= Is it compatible with caching plugins? =
Yes, MariCDN works alongside popular caching solutions. It only rewrites asset URLs.

= Can I purge the CDN cache? =
Yes, there's a "Clear CDN Cache" button in the settings to instantly purge your MariCDN cache.

== External Services ==

This plugin connects to the MariCDN API provided by MariHost to automate cache purging and validation functionality.

- Service used: MariCDN API (https://automate.maricdn.com)
- Purpose: To allow one-click CDN cache purging and verify zone configuration.
- Data sent: 
  - `zoneid` (your CDN zone identifier)
  - `webid` (plugin validation token – no user info)
- When: Only during cache purging or settings validation.
- Terms of Service: [https://maricdn.com/terms-and-conditions](https://maricdn.com/terms-and-conditions)  
- Privacy Policy: [https://maricdn.com/privacy-policy](https://maricdn.com/privacy-policy)

This connection is required for full plugin functionality. No personal user data is transmitted or stored.

== Screenshots ==

1. MariCDN settings panel with configuration options

== Changelog ==

= 1.0.1 – 17 May 2025 =
* Minor bug fixes and improvements

= 1.0.0 – 9 May 2025 =
* Initial release
