Article From:

For example, when I return to the previous page, the page directly from dist cache takes resources, which is contrary to business logic.

Answer 0:

ajaxAdd cache:false when the request is requested

Answer 1:

Set up HTTP header, no-cache, no-store.

Answer 2:

Is the front end route or? The front-end route allows you to control the reacquisition of the resource when the routing is converted, and the back end routing will not happen if you set up the last response cache header. If necessary, bring some head control information when requested. For example,The premise is that this request is your control, and if you are simply a request triggered by a HTML attribute such as link, SRC, you still have to control the cache header when the last request is returned.)
Pragma: no-cache
Cache-Control: no-cache

Leave a Reply

Your email address will not be published. Required fields are marked *