• Home
  • Services
  • Extensions
    • OAuth2 Server + Client
    • Cardealer
    • Questionaire
    • Sitepackage
  • Blog
  • Kontakt

Axios cache bust

10/26/2022 Vue Frontend

Cached API responses can be pretty annoying. Thanks to the great community on stackoverflow, where I found this solution, which works well for my use case.

 

const url = `https://api.ddev.site?timestamp=${new Date().getTime()}`
axios.get(url)...
Back