diff --git a/explore/src/app/app.module.ts b/explore/src/app/app.module.ts index 7232c7bd..3b0a1f67 100755 --- a/explore/src/app/app.module.ts +++ b/explore/src/app/app.module.ts @@ -19,6 +19,7 @@ import {AppRoutingModule} from './app-routing.module'; import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service"; import {PageURLResolverModule} from "./openaireLibrary/utils/pageURLResolver.module"; import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module"; +import {CacheInterceptorService} from "./openaireLibrary/cache-interceptor.service"; //import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service'; @@ -35,6 +36,7 @@ import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jso AppRoutingModule, BrowserTransferStateModule, BrowserAnimationsModule, PageURLResolverModule, Schema2jsonldModule + //NoopAnimationsModule ], declarations: [AppComponent, OpenaireErrorPageComponent], exports: [AppComponent], @@ -44,6 +46,11 @@ import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jso useClass: EnvironmentSpecificService },*/ EnvironmentSpecificResolver, + { + provide: HTTP_INTERCEPTORS, + useClass: CacheInterceptorService, + multi: true + }, { provide: HTTP_INTERCEPTORS, useClass: HttpInterceptorService,