lukashinsch / spring-angular-cache-preloader

Component to pre-fill caches for angular js rest request though index page
MIT License
0 stars 2 forks source link

Ignores errors while calling servlet #5

Closed lukashinsch closed 9 years ago

lukashinsch commented 9 years ago

Since moving to calling servlet an exception inside the controller etc. is no longer propagated to the transformer. Instead an error response is sent back. So we need to check the response status code and only add response content to cache if response code is 2XX (otherwise we put empty string in cache which will mean the client cannot get the data)