Problem with disabling JavaScript minifier in Liferay 5.2.3
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 com.lifera开发者_JS百科y.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?
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.com/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: com.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 comment 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 comment out the filter from web.xml.
精彩评论