<IfModule mod_headers.c>
    Header unset Cookie
    Header unset Set-Cookie
    RequestHeader unset Cookie
    
    <FilesMatch "\.(jpg|jpeg|png|gif|webp|avif)$">
        Header set Access-Control-Allow-Origin "*"
        Header set Access-Control-Allow-Methods "GET"
        Header set Cache-Control "public, max-age=31536000, immutable"
    </FilesMatch>
    AddOutputFilterByType BROTLI_COMPRESS image/svg+xml image/webp
    AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
<IfModule LiteSpeed>
  # Enable caching
  CacheEnable public /
  CacheLookup public on
  
  # Cache settings
  CacheIgnoreCacheControl On
  CacheIgnoreNoCache On
  CacheMaxExpire 604800
  CacheDefaultExpire 3600
  
  # Gzip compression
  <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
  </IfModule>
  
  # Browser caching
  <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html "access plus 1 hour"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
  </IfModule>
</IfModule>