2016-02-25 3 views
2

Как отключить версию моих файлов JavaScript? Теперь я вижуКак отключить управление версиями файлов JavaScript?

<script type="text/javascript" src=".../modal-ver-1455723568000.js"></script> 

Но я хочу

<script type="text/javascript" src=".../modal.js"></script> 

В противном случае я должен установить точки останова в Chrome снова и снова Devtools.

Спасибо.

ответ

2

В YourApplication#init() добавить

if (usesDevelopmentMode()) { 
    // to disable the timestamps in the names 
    getResourceSettings().setResourceCachingStrategy(
    NoopResourceCachingStrategy.INSTANCE); 

    // to disable caching in the browser 
    getResourceSettings().setDefaultCacheDuration(Duration.NONE); 
} 
Смежные вопросы