如何在Jsp中加上构建时间

12 views
Skip to first unread message

Jade Shan

unread,
Aug 13, 2013, 11:35:15 PM8/13/13
to mave...@googlegroups.com
大家好,我遇到的问题就是为了防止浏览器缓存css与js,在引用的URL后加上时间参数。如:

<link rel="stylesheet" type="text/css" href="${jspStoreImgDir}styles/account_v1.css?t=29304">

请问在maven下如何实现?

Sutra Zhou

unread,
Aug 14, 2013, 7:26:07 AM8/14/13
to maven-zh


2013/8/14 Jade Shan <evoker...@gmail.com>
大家好,我遇到的问题就是为了防止浏览器缓存css与js,在引用的URL后加上时间参数。如:

<link rel="stylesheet" type="text/css" href="${jspStoreImgDir}styles/account_v1.css?t=29304">

请问在maven下如何实现?

--
您收到此邮件是因为您订阅了 Google 网上论坛的“Maven中文”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 maven-zh+u...@googlegroups.com
要向此网上论坛发帖,请发送电子邮件至 mave...@googlegroups.com
通过以下网址访问此论坛:http://groups.google.com/group/maven-zh。
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。

翁翊成

unread,
Aug 20, 2013, 12:36:28 AM8/20/13
to mave...@googlegroups.com
也可以考虑在pom中嵌入ant脚本处理


2013/8/14 Sutra Zhou <zhous...@gmail.com>



--
翁翊成
Reply all
Reply to author
Forward
0 new messages