mod_deflate and APEX [message #682171] |
Wed, 07 October 2020 09:51 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I'll be building some new machines for APEX environments soon, and I am wondering whether I should enable mod_deflate in the Apache reverse proxies. I've had suggestions that I should.
It seems to be straightforward, the module is there so all I need do is uncomment the line that loads it and specify a few MIME types for compression, for example:LoadModule deflate_module modules/mod_deflate.so
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
</IfModule> The Oracle doc here
https://docs.oracle.com/middleware/12213/webtier/administer-ohs/GUID-37CEBCE0-7480-468C-9197-C5943B65AC67.htm#HSADM368
does seem to recommend it, but I have read that for small objects of just a few hundred bytes compression may not be a Good Thing. Does anyone have a feeling for compression and APEX applications? Do you always, never, or sometimes enable it?
|
|
|