ssossossosso

Forums

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

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 2 years, 7 months ago.

  • Creator
    Topic
  • #61011

    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
  • #61012

    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

    #61013

    MaximR
    Participant

    I tried this varient.

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

    Thank you.

    #61014
    Hryhorii Hrebiniuk
    Hryhorii Hrebiniuk
    Participant

    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.

ssossossosso