# Consultório Dr. Humberto Calicchio - CRM-SP 100468 / RQE 31774
# Configuração Apache / cPanel para alta velocidade e sem cache de HTML

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  # Se o arquivo ou pasta existir fisicamente, serve diretamente
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # Roteamento SPA
  RewriteRule ^ index.html [L]
</IfModule>

# Tipos MIME modernos
<IfModule mod_mime.c>
  AddType image/webp .webp
  AddType image/svg+xml .svg
  AddType application/manifest+json .webmanifest
  AddType application/javascript .js
</IfModule>

# Desativa cache agressivo no index.html
<IfModule mod_headers.c>
  <FilesMatch "\.(html|htm)$">
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "0"
  </FilesMatch>
</IfModule>
