Skip to content

Commit

Permalink
Merge pull request #40 from Hackbard/feature/add-no-cache-header
Browse files Browse the repository at this point in the history
#39 added no cache header
  • Loading branch information
pkarw authored Jul 4, 2019
2 parents 895625e + 6d291fa commit 57967fe
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ protected function _result($code, $result)
],
JSON_NUMERIC_CHECK
)
)->setHttpResponseCode($code)->setHeader('Content-Type', 'application/json');
)
->setHttpResponseCode($code)
->setHeader('Content-Type', 'application/json')
->setHeader('Cache-Control', 'no-cache');
}

/**
Expand Down

0 comments on commit 57967fe

Please sign in to comment.