Includ Font In Compressible Types & Expires By Type

wpf

Active Member
#1
I need compress font type like google font that stored localy and font like fontawesome, what the text i need input to form Compressible Types

HTML:
text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml
Also add to Expires By Type
HTML:
image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800
 
Last edited:

NiteWave

Administrator
#2
for example,
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2
its content-type is application/font-woff2
2 steps:
1. add "application/font-woff2" to lsws web admin->Server->Tuning->Compressible Types
2. check lsws web admin->Server->General->MIME Settings:$SERVER_ROOT/conf/mime.properties, see if woff2:application/font-woff2 in the list. if not in, add it.
restart lsws, woff2 should be compressed.
 
Top