2012-05-06 3 views
0

문서에서 pie.htc를 gzipping하는 것이 가능하지만 어떻게해야하는지에 대한 단서는 없습니다. 이제 .htc 파일을 gzip으로 압축하여 브라우저가 압축되었음을 알 수 있습니까? (기억 하듯이 .js 파일에서도 동일한 작업을 수행 할 수있었습니다.)css3-pie 압축하기

답변

1

가장 빠른 방법은 서버가 출력해야하는 모든 것을 압축하는 것입니다. .

아파치 :

<IfModule mod_gzip.c> 
# Enable the module 
mod_gzip_on yes 
# Allow GZIP compression for all requests 
mod_gzip_item_include mime .? 
</IfModule> 


# Method 2: Compress all content, manually excluding specified file types 
<IfModule mod_deflate.c> 
    # place filter 'DEFLATE' on all outgoing content 
    SetOutputFilter DEFLATE 
    # exclude uncompressible content via file type 
    SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|rar|zip)$ no-gzip 
    <IfModule mod_headers.c> 
    # properly handle requests coming from behind proxies 
    Header append Vary User-Agent 
    </IfModule> 
</IfModule>