mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
Added Content-Version header
refs https://github.com/TryGhost/Toolbox/issues/222 - Without Admin API versioning through URL, Content-Versioning header will be the best way to suggest an expected version of the resource (formatting). Having this header in place should minimize the ammount of breaking changes and would allow for the server to respond accordingly for a particular client version
This commit is contained in:
parent
2b7fbb2da6
commit
e23ae31e8f
@ -175,6 +175,7 @@ class ajaxService extends AjaxService {
|
||||
get headers() {
|
||||
return {
|
||||
'X-Ghost-Version': config.APP.version,
|
||||
'Content-Version': 'v4',
|
||||
'App-Pragma': 'no-cache'
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user