Skip to content

Instantly share code, notes, and snippets.

@daemonsy
Last active May 3, 2016 04:12
Show Gist options
  • Save daemonsy/4c040853adba58453b540f7796597dac to your computer and use it in GitHub Desktop.
Save daemonsy/4c040853adba58453b540f7796597dac to your computer and use it in GitHub Desktop.
Dragon's static.json with information redacted
{
"root": "dist/",
"https_only": true,
"routes": {
"/**": "index.html"
},
"proxies": {
"/api/": {
"origin": "https://backend.example.com/api"
}
},
"headers": {
"/": {
"Cache-Control": "no-store, no-cache"
},
"**.js": {
"Cache-Control": "public, max-age=31536000",
"Access-Control-Allow-Origin": "cdn-instance.example.com"
},
"**.css": {
"Cache-Control": "public, max-age=31536000",
"Access-Control-Allow-Origin": "cdn-instance.example.com"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment