Clean static files cache
You can clean generated static view files in any of the following ways:
-
In the Magento Admin. Go to System > Tools > Cache Management and click Flush Static Files Cache.
This option is only availble in
developermode. Refer to the static view files overview for more information. -
Manually by clearing the
pub/staticandvar/view_preprocesseddirectories and subdirectories except forpub/static/.htaccess.To clear the
pub/staticdirectory of all files except.htaccess(which is a hidden file), enter the following command:rm -R pub/static/* -
Several commands support an optional parameter
--clear-static-content, which cleans generated static view files: