-
Notifications
You must be signed in to change notification settings - Fork 435
Closed
Labels
area: command: devarea: headerstype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
Describe the bug
I'm getting the following error from my __header file when running netlify dev
Error: invalid rule (A path rule cannot contain anything after * token)
Configuration
the content of my __header file looks like this:
/*
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
cache-control: max-age=31536000
cache-control: no-cache
cache-control: no-store
cache-control: must-revalidate
/*.js
cache-control: max-age=31536000
/*.css
cache-control: max-age=31536000
/*.woff
cache-control: max-age=31536000adding to https://play.netlify.com/headers, this is deemed valid
Expected behavior
I would expect netlify dev to run and apply these header rules
CLI Output
netlify dev fail with the following error; Error: invalid rule (A path rule cannot contain anything after * token)
bronze, igregson and brennanangel
Metadata
Metadata
Assignees
Labels
area: command: devarea: headerstype: bugcode to address defects in shipped codecode to address defects in shipped code