# ==========================================================================
#  RELOOKZ — LIVE            relookz.com
#
# =========================================================================

# --- LIVE: search engines are welcome. The preview noindex is gone. ------

# --- MIME types the server may not already know ---------------------------
#  Without text/vtt the video captions are served as plain text and the
#  track silently fails - the player shows no CC option and nobody notices.
AddType text/vtt          .vtt
AddType image/svg+xml     .svg
AddType video/mp4         .mp4

# --- Force HTTPS ----------------------------------------------------------
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# --- Compression ----------------------------------------------------------
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css text/plain text/vtt
  AddOutputFilterByType DEFLATE application/javascript image/svg+xml
</IfModule>

# --- Caching --------------------------------------------------------------
#  HTML is deliberately NOT cached, so when you re-upload a page during
#  review the owner sees the change immediately instead of a stale copy.
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType text/html              "access plus 0 seconds"
  ExpiresByType text/css               "access plus 7 days"
  ExpiresByType application/javascript "access plus 7 days"
  ExpiresByType image/jpeg             "access plus 30 days"
  ExpiresByType image/png              "access plus 30 days"
  ExpiresByType image/svg+xml          "access plus 30 days"
  ExpiresByType video/mp4              "access plus 30 days"
</IfModule>

# --- Tidy -----------------------------------------------------------------
Options -Indexes
