4

I'm adding a custom request header to my jQuery AJAX call and was wondering if there are standards / best practices to follow on specifying the name of your custom header. I see a lot of non-standard headers start with X-. Should I do something like this? Does it matter?

"X-My-Header" : "value"
James Hay
  • 6,557
  • 6
  • 27
  • 53

1 Answers1

1

If you're minting new HTTP headers I recommend you read Mark Nottingham's Web API Versioning Smackdown.

johnstok
  • 91,872
  • 12
  • 52
  • 76