Im new in web development. I just want to ask if how to force clean all cache in the browser using PHP.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
The best you can do is set a cache-control header, but you cannot "force" anything on client with a server-side language.
In laravel:
In plain php you would use header() function before outputting anything.
PHP is on server side. You have no control over browsers.