Ondersteuning » Code oplossingen gezocht » vraag over comprimeren van website met htaccess bestand

  • hallo,
    ik ga mij verhaal anders vertellen.
    ik heb deze code voor htaccess om mij website te comprimeren:
    <ifModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/json
    </ifModule>
    ik lees on strato site dat ik moet ook deze regel toevoegen
    1-mod_gzip_on Yes for de code bovenop?is die regel verplicht of overbodig de bovenop code is voldoende?
    mij tweede vraag :
    ik lees dat:Some popular browsers cannot handle compression of all content so you may want to set the gzip-only-text/html note to 1 to only allow html files to be compresse. If you set this to anything but 1 it will be ignored.
    nu ik zie dat bepaalde browsers ondersteunen niet compressie , moet ik dan deze regel ook bijvoegen voor zekerheid of is niet nodig:
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    dank u wel
    johannes

1 reactie aan het bekijken (van in totaal 1)
  • Thread starter johannes999

    (@johannes999)

    ik heb het opgelost en deze is de code voor comprimeren:
    <ifModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/json
    </ifModule>

    die code moet in htaccess bestand toegevoegd moet worden om de site te comprimeren.
    dank u wel
    johannes

1 reactie aan het bekijken (van in totaal 1)
  • Het onderwerp ‘vraag over comprimeren van website met htaccess bestand’ is gesloten voor nieuwe reacties.