Javascript is cached in development mode with asset pipeline

后端 未结 8 980
感动是毒
感动是毒 2021-02-07 07:53

I recently upgraded my application to rails 3.1 and generally everything seems to be working but one thing is driving me insane.

I have 2 main js files, we\'ll call the

8条回答
  •  隐瞒了意图╮
    2021-02-07 08:44

    If above mentioned answers fail in your context..

    make sure the caching is done by rails.. some times it does not detect changes in asset and serve the older cached version..

    use rails c >> Rails.cache.clear
    or simply delete the caches in tmp dir

    [project_dir/tmp/cache/assets"]

提交回复
热议问题