ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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

  • Creator
    Topic
  • #11338

    MaximR
    Participant

    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
    Replies
  • #11350

    Rodolfo
    Participant

    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

    #11375

    MaximR
    Participant

    I tried this varient.

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

    Thank you.

    #11378

    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)

You must be logged in to reply to this topic.