I have updated a .js file in pub directory and run cache:flush. But when I open website/filename.js in browser and incognito browser, it still load the old file. The permission to pub directory is already 777. I have also run cache:clean, setup:upgrade, di:compile, and static-content-deploy but still load the old file.

  • Please remove the manually pub/static and run the all commands Mar 5, 2020 at 8:36
  • you mean just remove static folder and run setup:upgrade, di:compile, and static-content:deploy?
    – Wira Xie
    Mar 5, 2020 at 8:59
  • Yes remove van run commands Mar 5, 2020 at 10:07


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.