Skip to content

Commit 90dbfa3

Browse files
Merge pull request #988
Resolved conflicts in frontend/data/contributors.json by keeping HEAD's updated contributor count.
2 parents 7d95a85 + e0d1f5e commit 90dbfa3

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎backend/app.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ def _apply_security_headers(response):
250250
response.headers['Referrer-Policy'] = 'strict-origin-when-cross-origin'
251251
response.headers['Permissions-Policy'] = 'geolocation=(), microphone=(), camera=()'
252252
response.headers['X-Frame-Options'] = 'DENY'
253+
254+
# Add Cache-Control for 3D assets and static images
255+
if request.path.endswith(('.gltf', '.obj', '.png')):
256+
response.headers['Cache-Control'] = 'public, max-age=31536000, immutable'
257+
253258
return response
254259

255260
# =====================================================================

‎netlify.toml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,18 @@ functions = "netlify/functions"
55

66
[build.environment]
77
PYTHON_VERSION = "3.10"
8-
NODE_VERSION = "20"
8+
9+
[[headers]]
10+
for = "/*.gltf"
11+
[headers.values]
12+
Cache-Control = "public, max-age=31536000, immutable"
13+
14+
[[headers]]
15+
for = "/*.obj"
16+
[headers.values]
17+
Cache-Control = "public, max-age=31536000, immutable"
18+
19+
[[headers]]
20+
for = "/*.png"
21+
[headers.values]
22+
Cache-Control = "public, max-age=31536000, immutable"

0 commit comments

Comments
 (0)