Changeset 2355287
- Timestamp:
- 08/08/2020 04:48:44 PM (6 years ago)
- Location:
- image-cdn/trunk
- Files:
-
- 3 edited
-
image-cdn.php (modified) (1 diff)
-
imageengine/class-imagecdn.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-cdn/trunk/image-cdn.php
r2318196 r2355287 7 7 * Author URI: https://imageengine.io/ 8 8 * License: GPLv2 or later 9 * Version: 1.0. 39 * Version: 1.0.4 10 10 */ 11 11 -
image-cdn/trunk/imageengine/class-imagecdn.php
r2318196 r2355287 53 53 public static function add_headers() { 54 54 // Add client hints. 55 header( 'Accept-CH: viewport-width, width, device-memory, dpr, rtt,downlink, ect' );55 header( 'Accept-CH: viewport-width, width, device-memory, dpr, downlink, ect' ); 56 56 57 57 // Add resource hints and feature policy. … … 61 61 $protocol = (is_ssl()) ? "https://" : "http://"; 62 62 header( 'Link: <'.$protocol.$host.'>; rel=preconnect' ); 63 header( 'Feature-Policy: ch-viewport-width '.$protocol.$host.'; ch-width '.$protocol.$host.'; ch device-memory '.$protocol.$host.'; ch-dpr '.$protocol.$host.'; ch- rtt '.$protocol.$host.'; ch-downlink '.$protocol.$host.'; ch-ect '.$protocol.$host.';' );63 header( 'Feature-Policy: ch-viewport-width '.$protocol.$host.'; ch-width '.$protocol.$host.'; ch device-memory '.$protocol.$host.'; ch-dpr '.$protocol.$host.'; ch-downlink '.$protocol.$host.'; ch-ect '.$protocol.$host.';' ); 64 64 } 65 65 } … … 71 71 public static function add_head_tags() { 72 72 // Add client hints. 73 echo ' <meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width , Save-Data">' . "\n";73 echo ' <meta http-equiv="Accept-CH" content="DPR, Viewport-Width, Width">' . "\n"; 74 74 75 75 // Add resource hints. -
image-cdn/trunk/readme.txt
r2351224 r2355287 103 103 = How do I obtain a free ImageEngine trial = 104 104 105 To get started with ImageEngine you need to [sign up for an account](https://imageengine.io/signup?utm_source=wordpress.org&utm_medium=page&utm_term=wp-imageengine&utm_campaign=wp-imageengine). Then you'll be provided with a unique CDN hostname to use with this plugin. The trial is free for 60 days, and can be cancelled anytime. 105 To get started with ImageEngine you need to [sign up for an account](https://imageengine.io/signup?utm_source=wordpress.org&utm_medium=page&utm_term=wp-imageengine&utm_campaign=wp-imageengine). Then you'll be provided with a unique CDN hostname to use with this plugin. The trial is free for 60 days, and can be cancelled anytime. 106 106 107 107 == Upgrade Notice == … … 119 119 120 120 == Changelog == 121 122 = 1.0.4 = 123 * Removed rtt hint 121 124 122 125 = 1.0.3 =
Note: See TracChangeset
for help on using the changeset viewer.