Set HTTP headers properly to force caching on JS, CSS and PNG files

后端 未结 1 1329
-上瘾入骨i
-上瘾入骨i 2020-12-16 07:51

How can I tell to GlassFish server, to store all JS, CSS and PNG files into browser cache in order to reduce HTTP GET requests?

I am using JSF and PrimeFaces.

1条回答
  •  盖世英雄少女心
    2020-12-16 08:46

    Just make use of JSF builtin resource handler. I.e. use , and with files in /resources folder instead of "plain vanilla" ,

提交回复
热议问题