Skip to content

Instantly share code, notes, and snippets.

@philhawksworth
Last active January 4, 2018 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philhawksworth/d1deda75c8bc3d025e7d62639f904222 to your computer and use it in GitHub Desktop.
Save philhawksworth/d1deda75c8bc3d025e7d62639f904222 to your computer and use it in GitHub Desktop.
Simple example of a Netlify _headers file (no file extension in the real world)
# A path:
/assets/*
# Headers for that path:
Cache-Control: public, max-age=360000
/templates/index.html
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
/templates/index2.html
X-Frame-Options: SAMEORIGIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment