PHP code example of absolute / magento2-cache-bust
1. Go to this page and download the library: Download absolute/magento2-cache-bust library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
absolute / magento2-cache-bust example snippets
php bin/magento setup:upgrade
<IfModule mod_rewrite.c>
############################################
## enable rewrites
Options +FollowSymLinks
RewriteEngine on
############################################
## Absolute Cache Bust
RewriteRule ^version.+?/(.+)$ $1 [L]
############################################
## never rewrite for existing files
RewriteCond %{REQUEST_FILENAME} !-f
############################################
## rewrite everything else to index.php
RewriteRule .* ../get.php [L]
</IfModule>