| @@ -26,9 +26,10 @@ | ||
| 26 | 26 | public function ui_metadata(): array { |
| 27 | 27 | return array( |
| 28 | 28 | 'label' => __( 'CDN', 'xspeed' ), |
| 29 | 29 | 'icon' => 'Globe', |
| 30 | - 'description' => __( 'Serve static assets (images, fonts, CSS, JS) from a pull-zone CDN host like BunnyCDN, KeyCDN, or your own.', 'xspeed' ), | |
| 30 | + 'description' => __( 'Serve images, fonts, CSS and JS from a CDN such as BunnyCDN or KeyCDN.', 'xspeed' ), | |
| 31 | + 'group' => 'network', | |
| 31 | 32 | ); |
| 32 | 33 | } |
| 33 | 34 | |
| 34 | 35 | public function settings_schema(): array { |
| @@ -36,15 +37,15 @@ | ||
| 36 | 37 | 'enabled' => array( |
| 37 | 38 | 'type' => 'bool', |
| 38 | 39 | 'default' => false, |
| 39 | 40 | 'label' => __( 'Enable CDN', 'xspeed' ), |
| 40 | - 'description' => __( 'Rewrite static asset URLs to the CDN hostname below. Your CDN must be a pull-zone configured to fetch from this site.', 'xspeed' ), | |
| 41 | + 'description' => __( 'Load static files from the CDN address below. Set up the CDN to pull files from this site first.', 'xspeed' ), | |
| 41 | 42 | ), |
| 42 | 43 | 'cdn_url' => array( |
| 43 | 44 | 'type' => 'string', |
| 44 | 45 | 'default' => '', |
| 45 | 46 | 'label' => __( 'CDN URL', 'xspeed' ), |
| 46 | - 'description' => __( 'CDN hostname, e.g. cdn.example.com. https:// and trailing slashes are stripped automatically.', 'xspeed' ), | |
| 47 | + 'description' => __( 'The CDN address, for example cdn.example.com. xSpeed removes https:// and any trailing slash.', 'xspeed' ), | |
| 47 | 48 | 'dependsOn' => array( 'field' => 'enabled' ), |
| 48 | 49 | ), |
| 49 | 50 | 'included_extensions' => array( |
| 50 | 51 | 'type' => 'list', |
| @@ -49,10 +50,10 @@ | ||
| 49 | 50 | 'included_extensions' => array( |
| 50 | 51 | 'type' => 'list', |
| 51 | 52 | 'default' => Cdn_Rewriter::DEFAULT_EXTENSIONS, |
| 52 | 53 | 'item_type' => 'string', |
| 53 | - 'label' => __( 'Included File Extensions', 'xspeed' ), | |
| 54 | - 'description' => __( 'Only URLs ending in these extensions are rewritten. Defaults cover images, fonts, CSS, JS, and common media.', 'xspeed' ), | |
| 54 | + 'label' => __( 'File types to serve', 'xspeed' ), | |
| 55 | + 'description' => __( 'Only files with these extensions load from the CDN. The defaults cover images, fonts, CSS, JS and common media.', 'xspeed' ), | |
| 55 | 56 | 'dependsOn' => array( 'field' => 'enabled' ), |
| 56 | 57 | ), |
| 57 | 58 | 'excluded_patterns' => array( |
| 58 | 59 | 'type' => 'list', |
| @@ -57,10 +58,10 @@ | ||
| 57 | 58 | 'excluded_patterns' => array( |
| 58 | 59 | 'type' => 'list', |
| 59 | 60 | 'default' => array(), |
| 60 | 61 | 'item_type' => 'string', |
| 61 | - 'label' => __( 'Excluded Patterns', 'xspeed' ), | |
| 62 | - 'description' => __( 'Glob patterns matched against the URL path. Matching URLs stay on the origin. Examples: /wp-admin/*, *.pdf, /private/*', 'xspeed' ), | |
| 62 | + 'label' => __( 'Excluded paths', 'xspeed' ), | |
| 63 | + 'description' => __( 'Files whose path matches a pattern load from your server, not the CDN. Use * as a wildcard, for example /private/* or *.pdf.', 'xspeed' ), | |
| 63 | 64 | 'dependsOn' => array( 'field' => 'enabled' ), |
| 64 | 65 | ), |
| 65 | 66 | ); |
| 66 | 67 | } |