|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/relaunch-kmu/wp-content/plugins/imagify/classes/Webp/ |
Upload File : |
<?php
declare(strict_types=1);
namespace Imagify\Webp;
use Imagify\WriteFile\AbstractApacheDirConfFile;
/**
* Add and remove contents to the .htaccess file to display WebP images on the site.
*
* @since 1.9
*/
class Apache extends AbstractApacheDirConfFile {
/**
* Name of the tag used as block delemiter.
*
* @var string
* @since 1.9
*/
const TAG_NAME = 'Imagify: webp file type';
/**
* Get unfiltered new contents to write into the file.
*
* @since 1.9
*
* @return string
*/
protected function get_raw_new_contents() {
return trim(
'
<IfModule mod_mime.c>
AddType image/webp .webp
</IfModule>'
);
}
}