require.js - How can I set a version on required modules as part of the URL?

后端 未结 4 1773
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 06:50

I am using require.js to require JS modules in my application.

I need a way to bust client cache on new JS modules, by way of a different requested URL.

i.e., if

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-21 07:22

    HTML5 Boilerplate has ant-build-script that renames your files and any reference to them for this exact reason and can do alot more. It's worth checking out if you haven't already.

提交回复
热议问题