Title: Aptranet CDN Integration
Author: aptranet
Published: <strong>15 marts, 2025</strong>
Last modified: 15 marts, 2025

---

Meklēt spraudņus

![](https://ps.w.org/aptranet-cdn/assets/icon-128x128.png?rev=3256324)

# Aptranet CDN Integration

 Autors [aptranet](https://profiles.wordpress.org/aptranet/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/aptranet-cdn.1.8.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/aptranet-cdn/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/aptranet-cdn/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/aptranet-cdn/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/aptranet-cdn/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/aptranet-cdn/)

## Apraksts

Aptranet CDN Integration accelerates your WordPress site by rewriting static asset
URLs to use your Aptranet CDN distribution. It fetches distributions automatically
and provides an intuitive interface for managing your CDN settings.

### Short Description

Integrate Aptranet CDN for faster site performance.

### Full Description

Aptranet CDN Integration is designed to enhance your WordPress site’s speed and 
performance by delivering static assets (such as images, scripts, and styles) via
the Aptranet Content Delivery Network. This plugin simplifies the process of connecting
your website to the CDN with an intuitive settings interface.

Key features include:
 * **Automatic Distribution Fetching:** Connect to the Aptranet
API to automatically retrieve your available CDN distributions. * **Easy Distribution
Selection:** Choose your desired distribution from a dropdown that displays the 
distribution name instead of just the ID. The plugin automatically updates your 
CDN Base URL. * **Manage Distribution Access:** A dynamic “Manage Distribution” 
button links directly to the Aptranet Management Console where you can view detailed
analytics and manage your distribution settings. * **Asset URL Rewriting:** The 
plugin rewrites URLs for attachments, scripts, styles, images embedded in content,
and responsive srcset attributes. Your front-end assets are served by the CDN for
improved load times, while your WordPress admin remains unaffected. * **Lightweight
and Secure:** With proper sanitization for settings and adherence to WordPress coding
standards, the plugin is both secure and optimized. * **Minimal Permissions Required:**
Your API Key only requires the **CDN.ListDistributions** permission to fetch distribution
details from Aptranet’s API.

### External Services

This plugin connects to external services provided by Aptranet:
 * **Aptranet API:**
The plugin fetches available CDN distributions from the Aptranet API at `https://
api.aptranet.com/cdn/distributions`. **Data Sent:** Your Access Key (in the Authorization
header) and API Secret (in the Aptranet-Secret header) are sent to retrieve distribution
information. **Documentation:** [Aptranet API Documentation](https://developers.aptranet.com/)***
Aptranet Management Console:** The plugin provides a “Manage Distribution” button
that links to `https://console.aptranet.com/cdn/distributions/<DISTRIBUTION_ID>/
analytics` for detailed analytics and management. **Note:** Users must have an account
with Aptranet to access these features.

### License

This program is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License, version 2 or later, as published by the
Free Software Foundation. For more details, see: https://www.gnu.org/licenses/gpl-
2.0.html

## Ekrānuzņēmumi

 * [[
 * **Settings Page:** Displays the local Aptranet logo, API fields, and a polished
   interface with inline Fetch and Manage Distribution buttons.

## Uzstādīšana

 1. **Configure the Plugin Settings:**
 2.  * Navigate to **Settings > Aptranet CDN**.
     * Enter your **Access Key** and **API Secret**.
        _Note:_ Your API Key only requires
       the **CDN.ListDistributions** permission.
     * Check the **Enable CDN** checkbox.
     * Click the **Fetch Distributions** button to retrieve your available CDN distributions.
     * Select your desired distribution from the dropdown. The plugin will automatically
       update the CDN Base URL.
     * (Optional) Click the **Manage Distribution** button to view detailed analytics
       in the Aptranet Management Console.
     * Finally, click **Save Changes**. A loading spinner will appear while your settings
       are being saved.
 3. **Verify Functionality:**
 4.  * Visit your site’s front end to confirm that static asset URLs are rewritten 
       to use your Aptranet CDN distribution.
     * Your WordPress admin area remains unaffected for a seamless backend experience.

## BUJ

### How do I configure this plugin?

After installation, go to **Settings > Aptranet CDN**. Enter your API credentials,
fetch and select a distribution, then click **Save Changes**. The plugin automatically
rewrites your front-end asset URLs.

### What permissions does the API Key need?

Your API Key only requires the **CDN.ListDistributions** permission to successfully
fetch distribution information from Aptranet’s API.

### Will the plugin affect my WordPress admin area?

No. The plugin is designed to exclude the WordPress admin area from URL rewriting
to prevent any issues with dashboard scripts and styles.

### What if I disable the plugin?

If you disable the plugin, your site will revert to serving assets from your origin
server.

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Aptranet CDN Integration” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši
šādi cilvēki.

Līdzdalībnieki

 *   [ aptranet ](https://profiles.wordpress.org/aptranet/)

[Tulkot “Aptranet CDN Integration&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/aptranet-cdn)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/aptranet-cdn/), apmeklējiet
[ SVN krātuvi ](https://plugins.svn.wordpress.org/aptranet-cdn/)vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/aptranet-cdn/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/aptranet-cdn/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 1.8

 * Added a loading spinner overlay when the Save Changes button is clicked.
 * Added version parameters to enqueued styles and scripts for cache busting.
 * Included sanitization callbacks for all settings.
 * Updated the settings UI with inline Fetch and Manage Distribution buttons.
 * Switched the Aptranet logo to be loaded locally.
 * Updated the External Services section in this readme.
 * Noted that the API Key only requires the CDN.ListDistributions permission.

#### 1.7

 * Initial release with distribution fetching, URL rewriting for front-end assets,
   and integration with Aptranet’s API.

## Meta

 *  Versija **1.8**
 *  Pēdējo reizi atjaunots: **pirms 1 gada**
 *  Aktīvās instalācijas: **Mazāk par 10**
 *  WordPress versija ** 5.0 vai jaunāka **
 *  Pārbaudīts līdz: **6.7.5**
 *  PHP versija ** 7.0 vai jaunāka **
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/aptranet-cdn/)
 * Birkas:
 * [caching](https://lv.wordpress.org/plugins/tags/caching/)[cdn](https://lv.wordpress.org/plugins/tags/cdn/)
   [integration](https://lv.wordpress.org/plugins/tags/integration/)[performance](https://lv.wordpress.org/plugins/tags/performance/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/aptranet-cdn/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

[Your review](https://wordpress.org/support/plugin/aptranet-cdn/reviews/#new-post)

[Skatīt visas atsauksmes](https://wordpress.org/support/plugin/aptranet-cdn/reviews/)

## Līdzdalībnieki

 *   [ aptranet ](https://profiles.wordpress.org/aptranet/)

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/aptranet-cdn/)