On my local system I am setting up an project. All setup done and its not showing any error. But its not picking css/js.
I run the following commands but no one making effect to work -
sudo chmod -R 0777 var sudo chmod -R 0777 pub
php bin/magento setup:static-content:deploy
php bin/magento cache:flush
php bin/magento indexer:reindex
As I see the view source its adding versionNumber in url like -
pub/static/version1487053472/frontend/Cloudways/m2-theme/en_US/mage/calendar.css
and its showing 404 when I hit the url for respective css/js. And As I am checking respective css/js file to respective location without version1487053472, its available .
I am stuck ryt now, how to fix it. Please do a reply if you have any suggestion.
core_config_data
check for web url.htaccess
file in thepub/static
directory: github.com/magento/magento2/blob/2.1.4/pub/static/.htaccess This will add the rewrite for version URLS. Versions are for cachebusting static assets, you can read about cachebusting here: css-tricks.com/strategies-for-cache-busting-css