SA-MP Forums

Go Back   SA-MP Forums > SA-MP DL Edition > SA-MP 0.3.DL

Reply
 
Thread Tools Display Modes
Old 14/12/2017, 11:50 AM   #11
dugi
Beta Tester
 
Join Date: Jun 2007
Location: Poland
Posts: 4,841
Reputation: 782
Default Re: Can we compact model files for RedirectDownload()?

First result should answer your question: http://lmgtfy.com/?q=mod_deflate+htaccess
dugi is offline   Reply With Quote
Old 14/12/2017, 05:51 PM   #12
JR_Junior
Huge Clucker
 
Join Date: Nov 2011
Location: Brazil
Posts: 203
Reputation: 47
Default Re: Can we compact model files for RedirectDownload()?

I'm using the optmization option in cpanel and is working fine with all files. Thanks!
JR_Junior is offline   Reply With Quote
Old 17/05/2018, 06:14 PM   #13
JR_Junior
Huge Clucker
 
Join Date: Nov 2011
Location: Brazil
Posts: 203
Reputation: 47
Default Re: Can we compact model files for RedirectDownload()?

Quote:
Originally Posted by Zhao View Post
Add this to the mod_deflate config:

Code:
AddOutputFilter DEFLATE dff txd
That way .dff and .txd files will get compressed upon download.
It is taking the same time to download the files. Is this code not working or am I doing it wrong?
PHP Code:
<IfModule mod_deflate.c>
    
AddOutputFilter DEFLATE dff txd
    SetOutputFilter DEFLATE
    
<IfModule mod_setenvif.c>
        
# Netscape 4.x has some problems...
        
BrowserMatch ^Mozilla/4 gzip-only-text/html

        
# Netscape 4.06-4.08 have some more problems
        
BrowserMatch ^Mozilla/4\.0[678no-gzip

        
# MSIE masquerades as Netscape, but it is fine
        # BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

        # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
        # the above regex won't work. You can use the following
        # workaround to get the desired effect:
        
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

        
# Don't compress images
        
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
    
</IfModule>

    <
IfModule mod_headers.c>
        
# Make sure proxies don't deliver the wrong content
        
Header append Vary User-Agent env=!dont-vary
    
</IfModule>
</
IfModule
JR_Junior is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we compact this in one line? gurmani11 Scripting Help 8 03/07/2015 10:25 AM
Compact encoding disabled CalvinC Scripting Help 3 31/03/2015 01:41 PM
How to make if(pickupid == 1) compact? rangerxxll Scripting Help 23 03/03/2014 05:36 AM
Compact commands Wesley221 Help Archive 0 15/05/2011 04:16 PM
[FilterScript] Sistema de Checkpoints. [COMPACT] Kasura Lançamentos/Releases 8 13/11/2010 04:00 AM


All times are GMT. The time now is 10:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.