24 lines
No EOL
537 B
Text
24 lines
No EOL
537 B
Text
# Cloudflare Pages Headers Configuration
|
|
# Ensure all assets are served with correct MIME types
|
|
|
|
# JavaScript files
|
|
/assets/*.js
|
|
Content-Type: application/javascript; charset=utf-8
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
|
|
# CSS files
|
|
/assets/*.css
|
|
Content-Type: text/css; charset=utf-8
|
|
Cache-Control: public, max-age=31536000, immutable
|
|
|
|
# HTML files
|
|
/*.html
|
|
Content-Type: text/html; charset=utf-8
|
|
|
|
# Root HTML
|
|
/
|
|
Content-Type: text/html; charset=utf-8
|
|
|
|
# Prevent serving source files
|
|
/src/*
|
|
X-Robots-Tag: noindex |