最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ajax - Problem with disabling JavaScript minifier in Liferay 5.2.3 - Stack Overflow

programmeradmin1浏览0评论

I have a problem with disabling JavaScript minifier in Liferay 5.2.3. I tried the following things:

  • put property javascript.fast.load=false to portal-ext.properties
  • put property .liferay.portal.servlet.filters.minifier.MinifierFilter=false to portal-ext.properties
  • set js_fast_load url parameter to 0

but it still works. What could I miss?

I have a problem with disabling JavaScript minifier in Liferay 5.2.3. I tried the following things:

  • put property javascript.fast.load=false to portal-ext.properties
  • put property .liferay.portal.servlet.filters.minifier.MinifierFilter=false to portal-ext.properties
  • set js_fast_load url parameter to 0

but it still works. What could I miss?

Share Improve this question asked May 13, 2011 at 21:16 Przemysław RóżyckiPrzemysław Różycki 8382 gold badges10 silver badges21 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 4

To disable the minifier without modifying the portal properties add the following parameters to your url query string:

js_fast_load=0 <-- disable js minifier

css_fast_load=0 <-- disable css minifier

strip=0 <-- disable strip filter

See http://www.liferay./web/igor.spasic/blog/-/blogs/turn-off-minifiers-and-html-stripping

I think, I've found the solution.

When I disabled StripFilter, the content has not been minimized.

portal-ext.properties: .liferay.portal.servlet.filters.strip.StripFilter=false

It's strange, because I didn't find any documentation about such a behaviour of this filter. I discovered it after an analysis of the Liferay source code.

Dear readers, any ment about the StripFilter is appreciated. Thank you!

Are you sure your portal-ext.properties is loaded by the portal? It should print the location during startup.

One way to make absolutely sure minifier is not used you can ment out the filter from web.xml.

发布评论

评论列表(0)

  1. 暂无评论