ngx-rocket / generator-ngx-rocket

:rocket: Extensible Angular 14+ enterprise-grade project generator
https://ngx-rocket.github.io/
MIT License
1.53k stars 217 forks source link

Fix CacheInterceptor store and restore HttpHeaders in/from cache #441

Closed manzapanza closed 4 years ago

manzapanza commented 5 years ago

This PR fix the issue #440.

The CacheInterceptor now store on cache all HttpHeaders as a object to be stringified with JSON.stringify without loss all headers, and when restore the request from cache, the headers object is converted with the constructor new HttpHeaders

bursauxa commented 5 years ago

@manzapanza could you resolve the typing issue mentioned by @sinedied ?

sinedied commented 4 years ago

Hi, I hate to be that guy but I'm closing this one as cache service will be removed in next version, in favor of state management libraries (#534). Thanks for your work though! 👍