# ==============================================================================
# PWHE cPanel Performance, Slow-Connection Compression & Security Configuration
# RFQ Reference: PWHE/RFQ/WEB/001/2026 (Section 3.A.4)
# ==============================================================================

DirectoryIndex index.html index.php

# 1. Enable GZIP Compression for Fast Loading on Slow ASAL 2G/3G Connections
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json image/svg+xml
</IfModule>

# 2. Browser Caching for Static Assets
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/svg+xml "access plus 1 month"
  ExpiresByType text/css "access plus 1 week"
  ExpiresByType application/javascript "access plus 1 week"
</IfModule>

# 3. Basic Security Headers
<IfModule mod_headers.c>
  Header set X-Content-Type-Options "nosniff"
  Header set X-Frame-Options "SAMEORIGIN"
  Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>
