Created
March 12, 2018 02:58
-
-
Save prsnnami/46be0aadcd0cf544b5c56129d0144811 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import uuid from './Uuid' | |
let http = axios.create() | |
let httpHandler = { | |
...http, | |
get (url, options = {}) { | |
return http.get(url, { | |
...options, | |
params: { | |
...options.params, | |
cacheRefresh: uuid() | |
} | |
}) | |
} | |
} | |
export default httpHandler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment