Skip to content
Snippets Groups Projects
Commit 3279afb6 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

remove axios caching

parent 5ffc0f9f
No related branches found
No related tags found
No related merge requests found
......@@ -179,22 +179,9 @@ import SearchResults from './SearchResults.vue'
import Autocomplete from './Autocomplete.vue'
import SearchToolbar from './SearchToolbar.vue'
import { setup } from 'axios-cache-adapter'
const SEARCH_ENDPOINT = process.env.VUE_APP_SEARCH_ENDPOINT
const ARTICLE_ENDPOINT= process.env.VUE_APP_ARTICLE_ENDPOINT
let api_params = {
baseURL: SEARCH_ENDPOINT,
cache: {
maxAge: 15 * 60 * 1000,
}
}
if (process.env.VUE_APP_RELEASE == 'test') { //disable caching in local testing
api_params = {baseURL: SEARCH_ENDPOINT}
}
const api = setup(api_params)
const api = axios.create({baseURL: SEARCH_ENDPOINT})
function navigate_to_article(self, origin) {
self.article = null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment