W
W
weranda2018-01-29 10:53:57
PHP
weranda, 2018-01-29 10:53:57

Is there any way to check if a file exists in the browser cache?

Greetings
Is there any way to check the presence / absence of a file in the browser cache, for example CSS files, JS files, fonts and others?
Let's say we visit a site page and find out before the page is returned to PHP and / or at its early stages through JS in HEAD - there is this file in the browser cache (if the file is present / absent, then we do something). Concrete examples are welcome.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question