Javascript is cached in development mode with asset pipeline

后端 未结 8 988
感动是毒
感动是毒 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:33

    Have a look at your development log and see what it says when the application.js is served.

    It should look something like this for a normal request (you browsed to a page):

    Started GET "/assets/application.js" for 127.0.0.1 at Fri Sep 30 12:13:27 +1300 2011
    Served asset /application.css - 304 Not Modified (2ms)
    

    If not you may have not set the pipeline options correctly. One of the production settings might be in the wrong place. Section 9 of the asset pipeline guide has a checklist of correct settings for a migrated app.

提交回复
热议问题