Web Forms :: Gzip Compressing?
Jan 25, 2010How I Can Underestand That My WebSite Uses Gzip Compressing?[URL]
View 1 RepliesHow I Can Underestand That My WebSite Uses Gzip Compressing?[URL]
View 1 Repliesi m using photo gallery in a website but pics takes much time to be view than any other sites like facebook or orkut. hw can i overcome this problem. i m resizing the image on file upload btn. you can check the url www.sanskarbhartipublicschool.com/photogallery
View 1 RepliesThe urls on my site can become very long, and its my understanding that urls are transmisted with the http requests. So the idea came to compress the string in the url.From my searching on the internet, i found suggestions on using short urls and then link that one to the long url. Id prefere to not use this soltuion because1) I would have to do a extra database check to convert between long and short url.
That leaves in my head 2 options1) Hashing, i dont think this is a option. If you want a safe hashing algorithim, its going to be long.2) Compressing the url string, basicly having the server depress the string when when it gets the url parameters.3) Changing the url so its not descriptive, this is bad because it would make development harder for me ( This is a 1 man project ).Considering the vast amount posible amount of OS / browsers out there, i figured id as if anyone else has tried this or have some clever suggestions.If it mathers the url parameters can reach 100+ chars.Example: mysite.com/Reports/Ability.aspx?PlayerID=7737&GuildID=132&AbilityID=1140&EventID=1609&EncounterID=-1&ServerID=17&IsPlayer=True
EDIT:Let me clarify atm this is NOT breaking the site. Its more about me learning to find a good solution ( Im well aware this is micro optimisation, my site is very fast atm ) and making my site even faster ( To challage myself, and become a better coder ).There is also a cosmetic issue, i personaly think that a URL longer then the address bar looks bad.
I agree that the best way to shorten the ViewState is to disable it on the ASP.Net controls that don't need it. Keeping it small from the beginning is a great habit.I have also heard that it is already compressed (although can be true... there are ways of compressing it even more, has described in this Stack Overflow question).
My question here is not if it should be compressed... is: when should ViewState be compressed?If we have a ViewState of 410 characters it will weight 410 bytes in a page, while a ViewState of 13.843 characters equals 13.5 KB.13.5KB is a considerable weight already. And if I compress a CSS file that height 10KB, I think it is also worthy compressing a ViewState of 13.5KB, even if that means a little extra "thinking" on the server.But is 410 bytes of ViewState worth the extra processing on the server?
I need to write a routine which uploads a largish (2-4 meg) jpg photo and shrink it down to a small size. Adobe image ready does what I need but I need to develop it in my web application. Basically I need to reduce the image file size so it is web friendly.
View 9 RepliesI want enable Gzip compresion inasp.netÂ
I tried by adding following lines in web config
<system.webServer>
<httpCompression directory="%SystemDrive%inetpub
tempIIS Temporary Compressed Files">
[Code]....
I have heard that if we use gzip, aspx files will be loading faster. But, I am not sure as to how to use it in my web applications. I am hosting my site with GODADDY (ASP 2, IIS 7) Can anyone tell me if I will be able to use gzip? Can you give me a sample file where gzip is used?
View 4 RepliesIn the past, with pages with large viewstate I have overridden the PageStatePersister class so when the state is saved I compress it. On Load I decompress it. I have haven't really thought about it, but could IIS handle something like this better? The reason I did this was to keep my pages slimmer because I have a lot of custom controls on the page and the viewstate was huge. This is where I got my original code from:[URL]
View 1 RepliesUsing GZIP in asp.net application...
I have tried searching on google... we put some code in global.asax and web.config.. but not working..
i am trying to compress video files by using gzip in asp.net.
View 1 RepliesI am not good at IIS management.I enabled gzip compression for my web site but In IIS Temporary Compressed Files folder,i dont see any aspx type file.I just see js,text,css and some html files.Is that normal?Why dont i see aspx pages as compressed.Thats my metabase.xml and i think that my settings are true.
IIsCompressionScheme Location ="/LM/W3SVC/Filters/Compression/deflate"
HcCompressionDll="%windir%system32inetsrvgzip.dll"
HcCreateFlags="0"
[code]....
how to enable gzip compression in IIS 6.0 and IIS 7.0
View 2 Repliesi have problem configuring gzip compresion in IIS 7.5, below is my configuration in applicationhost config
<httpCompression directory="%SystemDrive%inetpub empIIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%system32inetsrvgzip.dll" />
<staticTypes>
[code]....
i implement this library in my applicationhttp://www.dominicpettifer.co.uk/Blog/17/gzip-compress-your-websites-html-css-script-in-codeit Works very well if i run the site in Visual Studio but when i compile my site and publish in IIS it only Gzip ASPX files not CSS or JS files.does anyone knows a better way for implement JavaScript and CSS Gzip in C# 2005 (changing the IIS its not an option it has to be in the code)
View 1 RepliesI am running a website using IIS6 and i wrote a simple generic handler which return smaller images when it receive image url as query string. My problem is that the server is applying gzip to some file types such as .aspx and .ashx. And that made my response image from the handler appear with lower quality because they are compressed.
How can i disable gzip for just this handler file, i hope for a solution without editing the IIS.
I'm trying to create an HTTP gzip/deflate module, but when I'm trying to get the Accept-Encoding header it returns null, I tried in IE8, FF, Chrome and Opera.
View 2 RepliesProject: Asp.net 2, MSVS VB.net
Hoster: Windows, Shared environment
I ran firebug (via Firefox) with googles speed test, and I got two major issues come back to me, and I sent two questions to my hoster.
1) MY QUESTION TO THE HOSTER1: Css, Js image files loaded to browser and cache from my hoster go up the request process with out the lastmodified data, and thus the browser cache does not know when to refresh the files on expiration date?
MY HOSTER RESPONSE: LastModified is a script that can be implemented to your java coding (ME: I think hes confused here, I dont use java) which you need to enter yourself. It is not a server function that we can modify on our side but it is something that you will have to change your website coding.
2) MY QUESTION TO THE HOSTER2: Firebug results said that GZIP is not activated for my files of CSS, js and asp.net pages, why not?
MY HOSTER RESPONSE: Currently, you are using Windows environment hosting services which does not support gzip. gzip is available on our Linux environment hosting plans as gzip is mainly for Linux OS.
After falling off my chair, I have to ask, what can I do via coding on my asp.net2 vb.net project? I thought these two issues were purely server related and nothing to do with code with the project? What do I do, or is my hoster wrong ?
I have an asp.net page which has 4 grid views connecting to mysql database for data population. The average response time for a round trip to the server is 20.55 seconds. That is way too much time. I have since applied the HTTP Compression GZip to improve the speed,I don't see any improvement in load time. Ive also used pagination, but no effect.
View 3 RepliesI got gzip working, but there are issues with IE. (works fine with FF and Chrome) Message: ASP.NET Ajax client-side framework failed to load. (and many other js related errors)
How can I prevent gzip compression on ie browsers ?? Other people who had similar issues enabled compression in IIS and that seems to solve the issue, but I can't do this on my discount machine...
This is what I use:
HttpApplication app = (HttpApplication)sender;
string acceptEncoding = app.Request.Headers["Accept-Encoding"];
Stream prevUncompressedStream = app.Response.Filter;
if (acceptEncoding != null && acceptEncoding.Length != 0)
[Code]....
I have referred below mentioned links and successfully implemented Gzip, by compressing aspx pages. URL....My website is ajax enabled. One of page is having gridview. While debugging gridview rowCommand fires and records are displaying in debugging mode, but same records are not displaying on web page controls.
View 1 Replieswe're looking to compress our gargantuan JavaScript files with GZip to speed up the page loads of our site. I know this can be done through IIS, but I can't seem to find a simple step-by-step guide on how to implement it.We're running IIS7.5 on Windows Server 2008 R2.
View 2 RepliesI'm tring to implement what Steve Souders discusses [URL] about forcing gzip compression
I've got a module that's running this:
[code]....
CompressionUtils.GzipSupported just checks for the 'accepts-encoding' header while
CompressionUtils.GzipSupportedExplicitly and CompressionUtils.GzipNotSupportedExplicitly check for the cookie saying whether the browser really can read gzip
But when I load a page in Firefox I get this error:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
and in Fiddler it shows that the content-encoding header has been added but the content hasn't been compressed
how to show the progress bar when file is upolading
in windows application with C#
URL....I use this one as my login, and I addes hyperlink for Forgot Password. But why I can't access the FORGOT PASSWORD.aspx for every time I click it. And when I login it redirects t Forgot Password.How I can access it without logging in?
View 1 RepliesIn our application we are using forms authentication, we have given defaulturl also in the config file. But the problem is that it is not getting redirected to the default url when the session timeout is occuring.
View 2 Replies