Skip to content

Instantly share code, notes, and snippets.

@prsnnami
Created March 12, 2018 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prsnnami/46be0aadcd0cf544b5c56129d0144811 to your computer and use it in GitHub Desktop.
Save prsnnami/46be0aadcd0cf544b5c56129d0144811 to your computer and use it in GitHub Desktop.
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