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
  • 7,115
  • 6
  • 33
  • 57
  • 3
    Duplicate question. You are on the correct track. http://stackoverflow.com/questions/3561381/custom-http-headers-naming-conventions – Eric LaForce Nov 08 '11 at 02:13

1 Answers1

1

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

johnstok
  • 96,212
  • 12
  • 54
  • 76