# Disable all caching
<IfModule mod_expires.c>
    ExpiresActive Off
</IfModule>

<IfModule mod_headers.c>
    Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
    Header set Pragma "no-cache"
    Header set Expires 0
</IfModule>

# Ensure PHP files are not cached
<FilesMatch "\.(php)$">
    Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
</FilesMatch>

# Force server to revalidate file changes
<IfModule mod_file_cache.c>
    FileETag None
</IfModule>
FileETag None

# Disable OPCache (if enabled)
php_flag opcache.enable Off

# Basic rewrite engine (optional)
RewriteEngine On
