title: Interceptor not executed when I refresh my page using "browser refresh/reload" or F5
body: <p>I am currently learning angular 7 but I am facing and issue and would like your help to understand what is going on.
  I am using JWT Authentication(Spring Boot Security) and on  each click my interceptor is called to set the token  before the request is sent to the server.
  When I use browser back/forward, everything is working fine.
  But if click on "browser refresh" , the interceptor is not not call and I am getting a Whitelabel Error Page.
  My questions are :
  1- why refresh is not not calling my interceptor?
  2- Do you know how this can be solved?</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { HttpInterceptor, HttpRequest, HttpHandler, HttpErrorResponse, 
  HttpEvent } from '@angular/common/http';
  import { Observable } from 'rxjs/Observable';
  import { Router } from '@angular/router';
  import { TokenStorage } from './public/portal/token.storage';
  import 'rxjs/add/operator/do';
  
   const TOKEN_HEADER_KEY = 'Authorization';
  @Injectable()
  export class Interceptor implements HttpInterceptor {
  constructor(private token: TokenStorage, private router: Router) {
  }
  intercept(req: HttpRequest&lt;any&gt;, next: HttpHandler): 
  Observable&lt;HttpEvent&lt;any&gt;&gt; {
  let authReq = req;
  if (this.token.getToken() != null) {authReq = req.clone({ 
      headers:req.headers.set(TOKEN_HEADER_KEY, 'Bearer ' + 
      this.token.getToken()) });
  }
  return next.handle(authReq).do(
    (err: any) =&gt; {
  
      if (err instanceof HttpErrorResponse) {
        if (err.status === 401) {
          this.router.navigate(['login']);
        }
      }
      console.log(err.status);
    }
  );
  }
  }
  </code></pre>
  
  <p>Thank you for helping me</p>