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:
Naz 2022-03-04 20:24:17 +07:00
parent 2b7fbb2da6
commit e23ae31e8f

View File

@ -175,6 +175,7 @@ class ajaxService extends AjaxService {
get headers() {
return {
'X-Ghost-Version': config.APP.version,
'Content-Version': 'v4',
'App-Pragma': 'no-cache'
};
}