We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d89302 commit a7a8ce6Copy full SHA for a7a8ce6
src/server.ts
@@ -429,6 +429,10 @@ export function createApp(siteId: string) {
429
// Authenticated responses cannot be cached publicly.
430
proxyRes.headers['cache-control'] = 'private, max-age=0';
431
}
432
+ // Special case for generated `.soy` and `.soy.html` files.
433
+ if (urlPath.endsWith('.soy') || urlPath.endsWith('.soy.html')) {
434
+ proxyRes.headers['content-type'] = 'text/plain';
435
+ }
436
437
// Handle custom headers.
438
if (manifest.headers) {
0 commit comments