Version Description
- Fixed WebP version switch issue
Download this release
Release Info
| Developer | keycdn |
| Plugin | |
| Version | 1.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.2 to 1.0.3
- cache-enabler.php +1 -1
- inc/cache_enabler_disk.class.php +3 -3
- readme.txt +3 -0
cache-enabler.php
CHANGED
|
@@ -6,7 +6,7 @@ Description: Simple and fast WordPress disk caching plugin.
|
|
| 6 |
Author: KeyCDN
|
| 7 |
Author URI: https://www.keycdn.com
|
| 8 |
License: GPLv2 or later
|
| 9 |
-
Version: 1.0.
|
| 10 |
*/
|
| 11 |
|
| 12 |
/*
|
| 6 |
Author: KeyCDN
|
| 7 |
Author URI: https://www.keycdn.com
|
| 8 |
License: GPLv2 or later
|
| 9 |
+
Version: 1.0.3
|
| 10 |
*/
|
| 11 |
|
| 12 |
/*
|
inc/cache_enabler_disk.class.php
CHANGED
|
@@ -141,7 +141,7 @@ final class Cache_Enabler_Disk {
|
|
| 141 |
* get asset
|
| 142 |
*
|
| 143 |
* @since 1.0.0
|
| 144 |
-
* @change 1.0.
|
| 145 |
*/
|
| 146 |
|
| 147 |
public static function get_asset() {
|
|
@@ -163,7 +163,7 @@ final class Cache_Enabler_Disk {
|
|
| 163 |
}
|
| 164 |
|
| 165 |
// check webp support
|
| 166 |
-
if ( $http_accept && ( strpos($http_accept, 'webp') !== false ) ) {
|
| 167 |
header('Content-Encoding: gzip');
|
| 168 |
readfile( self::_file_webp() );
|
| 169 |
exit;
|
|
@@ -475,7 +475,7 @@ final class Cache_Enabler_Disk {
|
|
| 475 |
* convert to webp source
|
| 476 |
*
|
| 477 |
* @since 1.0.1
|
| 478 |
-
* @change 1.0.
|
| 479 |
*
|
| 480 |
* @return string converted webp source
|
| 481 |
*/
|
| 141 |
* get asset
|
| 142 |
*
|
| 143 |
* @since 1.0.0
|
| 144 |
+
* @change 1.0.3
|
| 145 |
*/
|
| 146 |
|
| 147 |
public static function get_asset() {
|
| 163 |
}
|
| 164 |
|
| 165 |
// check webp support
|
| 166 |
+
if ( $http_accept && ( strpos($http_accept, 'webp') !== false ) && is_readable( self::_file_webp() ) ) {
|
| 167 |
header('Content-Encoding: gzip');
|
| 168 |
readfile( self::_file_webp() );
|
| 169 |
exit;
|
| 475 |
* convert to webp source
|
| 476 |
*
|
| 477 |
* @since 1.0.1
|
| 478 |
+
* @change 1.0.2
|
| 479 |
*
|
| 480 |
* @return string converted webp source
|
| 481 |
*/
|
readme.txt
CHANGED
|
@@ -51,6 +51,9 @@ Just [contact us](https://www.keycdn.com/contacts "Support Request") directly to
|
|
| 51 |
|
| 52 |
== Changelog ==
|
| 53 |
|
|
|
|
|
|
|
|
|
|
| 54 |
= 1.0.2 =
|
| 55 |
* Added support for WebP and CDN Enabler plugin
|
| 56 |
|
| 51 |
|
| 52 |
== Changelog ==
|
| 53 |
|
| 54 |
+
= 1.0.3 =
|
| 55 |
+
* Fixed WebP version switch issue
|
| 56 |
+
|
| 57 |
= 1.0.2 =
|
| 58 |
* Added support for WebP and CDN Enabler plugin
|
| 59 |
|
