How can I save files in the browser cache after clicking on it by clicking on the server?

I have Apache with http2 and I did a server click of the files that I would like to save in the browser cache, but this is not the case and I do not know why.

I did push with the php file as follows.

header( 'Link: <'https://www.myweb.com/mypath'>;rel="preload";as="video"', FALSE );

From my point of view, clicking Server works because I see server requests in access_log, but I think the files should be saved in the browser cache, but that’s not the case.

I am trying to make a push file on the server and after it request this file and get it from the cache (see the console console "from cache").

thank

+4
source share
1 answer

, , , , Google Chrome.

- Push HTTP2-, , push, , Google Chrome Google Chrome, .

: index.html stylesheet.css( ). Google Chrome, Google Chrome Stylesheet.css( html ). Google Chrome , , .

, " " Google Chrome.

.

0

All Articles