# Apache configuration for agent endpoints # Enable CORS for agent access Header always set Access-Control-Allow-Origin "*" Header always set Access-Control-Allow-Methods "GET, OPTIONS" Header always set Access-Control-Allow-Headers "Content-Type, Accept" # Set JSON content type for .json files ForceType application/json Header always set Content-Type "application/json" # Cache control - short cache for dynamic content Header always set Cache-Control "max-age=60, must-revalidate" Header always set Cache-Control "max-age=30, must-revalidate" Header always set Cache-Control "max-age=60, must-revalidate" # Longer cache for static content Header always set Cache-Control "max-age=3600" Header always set Cache-Control "max-age=3600" # Disable caching for health endpoint Header always set Cache-Control "no-cache, no-store, must-revalidate" # Enable rewrite engine for clean URLs RewriteEngine On # Redirect /agent to /agent/ (add trailing slash) RewriteRule ^/agent$ /agent/ [R=301,L]