Files
litianming 08ce60344d Initial commit: 心理咨询预约系统
PHP 前后端一体:首页咨询师列表、预约表单、管理后台、二维码准入与邮件通知;敏感配置与提交数据通过 .gitignore 排除。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 10:17:09 +08:00

26 lines
689 B
ApacheConf

# 禁止直接访问提交数据
<IfModule mod_authz_core.c>
<Files "submissions.json">
Require all denied
</Files>
</IfModule>
<IfModule !mod_authz_core.c>
<Files "submissions.json">
Order allow,deny
Deny from all
</Files>
</IfModule>
# HTML/PHP 页面不缓存,静态资源可长期缓存(靠 ?v= 版本号更新)
<IfModule mod_headers.c>
<FilesMatch "\.(html|php)$">
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
</FilesMatch>
<FilesMatch "\.(css|js|png|jpg|jpeg|svg|webp)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
</IfModule>