OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – HTML, JavaScript, CSS, Design Questions After update css and js users recieve old files

This topic contains 3 replies, has 3 voices, and was last updated by Hryhorii Hrebiniuk Hryhorii Hrebiniuk 5 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #34639


    After build css and js files with new files user received incorrect css rules (old), only after Ctrl-r or Ctrl-F5 new changes displayed.

    How to fix this?

    One of the soluton was use this command

    php app/console assetic:dump --env=prod --no-debug

    But didn’t help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
  • #34640


    This works for me:

    rm -rf web/css/*
    rm -rf web/js/*
    php app/console assetic:dump -e prod
    php app/console assets:install -e prod

    Sometimes you’re running in dev mode. So if that’s the case, you should replace -e prod to -e dev



    I tried this varient.

    Still after update css rules files, use css from cashe, only full page reloading helps.

    Thank you.

    Hryhorii Hrebiniuk
    Hryhorii Hrebiniuk

    Hi MaximR.

    Yes, we know about this issue (serving stale assets) and going to fix it soon.

    If this is a real problem for you, for now it is only possible way is to configure web-server to serve assets with header that says not to cache files in browser.

    Must warn you, it will generate extra load on web-server (assets will be loaded from server all the time).

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroPlatform – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No