Abilitare la compressione GZip su di una response WCF Ria Services

Avendo la necessità di diminuire il peso del traffico di dati utilizzando i Ria Services e migliorarne cosi le performance ,abbiamo la possibilità di abilitare la compressione del traffico HTTP . Su IIS7 e versioni successive lo scenario può essere abilitato facilmente senza l'installazione di plugin di terze parti .

In Windows Vista o Windows 7  è possibile procedere all'installazione cosi

Dal pannello di controllo selezioniamo la voce " Programs and features " e poi "Turn Windows Features on or off " .

A questo punto sulla lista delle features windows abilitiamo le voci “Dynamic Content Compression” e “Static Content Compression” presenti in “Internet Information Services->World Wide Webservices->Performance Features "

 
Su Windows Server 2008/2008 R2 invece dopo aver aggiunto il ruolo "Dynamic Content Compression " se non presente , basterà navigare tramite IIS manager nel sito di interesse o sull'intero server selezionare la voce Compression tra le opzioni e selezionare le voci “Dynamic Content Compression” e “Static Content Compression” .

Per maggiori e dettagliate informazioni sull'abilitazione delle rispettive opzioni su Windows 7 e Windows Server 2008/R2 è possibile far riferimento alla guida di su iis.net http://www.iis.net/ConfigReference/system.webServer/httpCompression

Una volta che le opzioni sono state abilitate tutte le normai richieste HTTP sarannò compresse utilizzando GZip . Per poter abilitare questa feature sulle nostre applicazioni che fanno uso dei Ria services è necessario  aggiungere il mime-type  alla lista di mime che devono essere compressi , in questo caso " application/msbin1 " . Per fare questo apriamo il prompt dei comandi "cmd.exe" (Come amministratori)

Navighiamo nella cartella Inetsrv presente in c:\windows\System32
CD C:\Windows\system32\Inetsrv\
Eseguiamo il seguente comando
appcmd.exe set config -section:system.webServer/httpCompression /+”dynamicTypes.mimeType='application/msbin1',enabled='True']” /commit:apphost

Questo aggiungerà una nuova entry al file Windows\System32\Inetsrv\Config\applicationHost.config .

Basterà adesso riavviare IIS per rendere effettive le modifiche . Per poterne controllare il corretto funzionamento è ovviamente possibile utilizzare Fiddler . A questo punto una normale richiesta prima dell'apportazione della modifica era cosi

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 583
Content-Type: application/msbin1
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 16 Apr 2012 23:20:41 GMT

Ora

HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/msbin1
Content-Encoding: gzip
Expires: -1
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 16 Apr 2012 23:20:41 GMT
Content-Length: 336

 Alla prossima

Print | posted on martedì 17 aprile 2012 13:21

Comments on this post

# dental curing light

Requesting Gravatar...
Find dental lab equipment from a vast selection of Dental Lab Equipment. 100Z
nsk handpiece

dental handpiece

dental lab equipment

dental lab
Left by dental curing light on lug 18, 2012 8:25

# Spice Incense

Requesting Gravatar...
o the high heel, the popular Jumpman brand, a superb elephant print low fat, coupled with
Left by Spice Incense on mar 18, 2013 3:46

# nice

Requesting Gravatar...
This post truly made my day. You can’t imagine just how much time I had spent for this information! Thanks. definition paper

Left by denas on apr 25, 2013 8:05

# re: Abilitare la compressione GZip su di una response WCF Ria Services

Requesting Gravatar...
Thanks for sharing your great ideas with us through this site. logo design maestro

Left by wedina on apr 27, 2013 7:59

# re: Abilitare la compressione GZip su di una response WCF Ria Services

Requesting Gravatar...
In Windows Vista o Windows 7 è possibile procedere all'installazione cosi www.todayprimetime.com Indoor furniture www.jeparaproduction.com/
Left by Indoor furniture on giu 08, 2014 7:06

# kamagra oral jelly kaufen deutschland sen

Requesting Gravatar...
kamagra oral jelly kaufen deutschland paypal
[url=http://kamagraonl.com/]kamagra 100 mg oral jelly[/url]
kamagra oral jelly kaufen amazon
kamagra 100 mg oral jelly
kamagra stores
http://kamagraonl.com/
kamagra oral jelly for sale in usa illegal
Left by Michaelbeple on mag 10, 2018 3:15

# kamagra 100 sildenafil citrate chewable tablets 100 mg sen

Requesting Gravatar...
kamagra stores
buy kamagra 100 mg
kamagra oral jelly india price
[url=http://kamagraonl.com/]buy kamagra 100 mg[/url]
kamagra 100mg oral jelly use
http://kamagraonl.com/
kamagra oral jelly kaufen wien
Left by Marionurive on mag 10, 2018 8:15

# kamagra 100mg oral jelly sildenafil ajanta sen

Requesting Gravatar...
kamagra oral jelly manufacturers in india
buy kamagra 100 mg
kamagra oral jelly india online
[url=http://kamagraonl.com/]buy kamagra online[/url]
india kamagra 100mg chewable tablets
http://kamagraonl.com/
kamagra shop deutschland erfahrung
Left by Keithsew on mag 11, 2018 2:51

# kamagra oral jelly gГјnstig kaufen deutschland sen

Requesting Gravatar...
kamagra oral jelly uk
buy kamagra
kamagra oral jelly india
[url=http://kamagraonl.com/]buy kamagra 100 mg oral jelly[/url]
kamagra forum
http://kamagraonl.com/
kamagra store erfahrung
Left by JeremyTep on mag 11, 2018 6:57

# kamagra kopen utrecht sen

Requesting Gravatar...
is the kamagra store legit
[url=http://kamagraonl.com/]buy kamagra 100 mg oral jelly[/url]
kamagra forum
kamagra 100mg
kamagra oral jelly india online
http://kamagraonl.com/
buy kamagra oral jelly online usa
Left by WarrenJogma on mag 13, 2018 1:52

# how to use kamagra oral jelly sildenafil sen

Requesting Gravatar...
kamagra oral jelly wirkungsdauer
[url=http://kamagraonl.com/]buy kamagra 100mg[/url]
kamagra jelly use
buy kamagra
the kamagra store coupon
http://kamagraonl.com/
kamagra oral jelly sale
Left by VaughnKnicy on mag 13, 2018 3:55

# levitra generic lowest prices sen

Requesting Gravatar...
levitra prices kaiser
[url=http://buylevitraonl.com/]levitra 10mg[/url]
levitra coupons printable
buy levitra
levitra 20 mg cost cvs
http://buylevitraonl.com/
cost levitra 20 mg at walmart
Left by Williamdow on mag 13, 2018 4:18

# kamagra oral jelly how to use sen

Requesting Gravatar...
kamagra forum opinie
[url=http://kamagraonl.com/]buy kamagra[/url]
kamagra 100mg oral jelly review
kamagra 100mg
come usare kamagra oral jelly
http://kamagraonl.com/
kamagra kopen amsterdam
Left by Elroyoxymn on mag 14, 2018 5:59

# fildena 100 mg sen

Requesting Gravatar...
fildena 100 mg cheap
fildena
fildena 50 mg tablets buy from canada
[url=http://fildenaonl.com/]buy fildena online[/url]
fildena 100 reviews is it safe
http://fildenaonl.com/
fildena 50 india
Left by Williamvidly on mag 14, 2018 6:06

# kamagra customer reviews sen

Requesting Gravatar...
kamagra 100mg oral jelly usa
[url=http://kamagraonl.com/]buy kamagra[/url]
kamagra oral jelly cvs
kamagra 100mg
kamagra oral jelly gГјnstig kaufen paypal
http://kamagraonl.com/
kamagra gold reviews
Left by Williemom on mag 14, 2018 8:25

# kamagra oral jelly 100mg factory discount prices sen

Requesting Gravatar...
kamagra 100mg tabletta
[url=http://kamagraonl.com/]buy kamagra 100 mg[/url]
kamagra shop deutschland erfahrungen
buy kamagra
kamagra direct
http://kamagraonl.com/
kamagra com
Left by Petermem on mag 17, 2018 4:50

# levitra 20 mg coupons 2016 sen

Requesting Gravatar...
is generic levitra available in the us
[url=http://levitraonlq.com/]levitra 10mg[/url]
generic name for levitra
levitra 20mg
levitra generic available 60 mg
http://levitraonlq.com/
levitra generic available 60 mg
Left by Ronaldanoca on mag 17, 2018 3:57

# kamagra oral jelly wirkung frauen sen

Requesting Gravatar...
kamagra oral jelly come si usa
[url=http://kamagraonl.com/]buy kamagra[/url]
kamagra 100mg reviews
kamagra 100mg
kamagra kopen in winkel rotterdam
http://kamagraonl.com/
kamagra 100 mg green tablets
Left by Edgarnuh on mag 18, 2018 10:32

# cheapest fildena 100 mg sen

Requesting Gravatar...
fildena 100 mg softgel capsule
[url=http://fildenaonl.com/]buy fildena online[/url]
fildena 100 mg from india
fildena online
fildena 100 mg cheap
http://fildenaonl.com/
fildena 100 mg softgel capsule
Left by Michaelstons on mag 18, 2018 5:45

# kamagra shop deutschland erfahrung sen

Requesting Gravatar...
kamagra 100mg oral jelly amazon
buy kamagra
kamagra store coupon
[url=http://kamagraonl.com/]buy kamagra 100mg[/url]
kamagra oral jelly review forum
http://kamagraonl.com/
india kamagra 100mg chewable tablets
Left by DouglasHal on mag 19, 2018 4:03

# kamagra 100mg soft tabs chewable tablets sen

Requesting Gravatar...
kamagra oral jelly 100mg suppliers australia
[url=http://kamagraonl.com/]buy kamagra oral jelly[/url]
kamagra 100mg chewable tablets
buy kamagra
the kamagra store coupon
Left by Danielpreog on giu 19, 2018 9:44
Comments have been closed on this topic.