# Gojo.watch backend — LiteSpeed / Apache rewrites.
# The document root must point at backend/public/ (see DEPLOY.md).
# Everything that is not a real file goes to index.php.
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

# Cache static assets for a day (posters come from AniList CDN, not here).
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css "access plus 1 day"
    ExpiresByType application/javascript "access plus 1 day"
</IfModule>
