GZIP compression?
Is there some way that I can find out if a particular website is using GZIP?
How could I find out that a file coming back to me as a response is a gziped file and is being uncompressed by my browser?
At a guess, I'd say your browser works on two things: file extensions and HTTP Content-Type headers. File extensions are straightforward: .gz and .tgz cover the majority of GZIP files, while .zip covers ZIP files. URLConnection.getContentType allows you to get the Content-Type head, and you want to look for a substring "compressed".
Similar Messages
-
GZIP Compression Issue in Weblogic 8.1
Has anyone experienced issues with gzip compression filtering in 8.1?
After about 2 months of dev. and testing with the filter, a bug has been found
in our portal, and I have traced it back to the filter that I downloaded from
dev2dev code and utilities.
It is strange. The only time I see an issue is when a user clicks the "back button"
in the browser itself to go back to a previous page, AND then clicks a link (for
example) in a portlet that is tied to an action in a jpf for that portlet. The
error only happens for actions in a portlet that are local to that portlet (no
forwarding to other portlets or anything fancy)...just pure "local internal forwards."
If you do this, USING THE BACK BUTTON to get back to this page with the portlet,
when you click the action, you are actually taken to the page where you were when
you clicked the back button.
I have re-created this is simple portals that have no content, so I know it is
not something else I introduced.
Any ideas? Maybe it is the filter-mapping pattern I am using??? I am currently
mapping on *.portal, but this is the only situation that seems to break.For those interested, I have some updates on this subject and someone out there sent me a mail asking if I ever found anything out.
Basically, when I encountered this issue the first time, I was working on a SP2 Portal. We were having numerous small bugs like this one with SP2 that centered around the back button or refresh button. BEA gave us a "super patch" back in July or so that when applied to our SP2 project, fixed our issue. I have sense moved onto SP3, and I did not see the compression issue (so I think SP3 must have the patches correctly setup...like I would assume it would). -
Enabling GZIP compression on the HTTPBC or a suggested alternative approach
Hi,
I posted this on the openusb-users group, but I haven't come up with a good solution yet.
Any takers?
Thanks,
Rob
http://openesb-users.794670.n2.nabble.com/gzip-compression-support-in-HTTP-BC-tp5366301.html
Does anybody know whether the HTTP BC shares all of the same features that the Glassfish HTTP listener supports such as gzip compression? If so, where are those parameters specified for the HTTP BC? (Compression of the XML can of course make a tremendous bandwidth savings for the typical XML passed around via SOAP.)
Please see:
http://docs.sun.com/app/docs/doc/820-4338/abhco?a=view
compression - on
Specifies use of HTTP/1.1 GZIP compression to save server bandwidth. Allowed values are:
off Disables compression.
on Compresses data.
force Forces data compression in all cases.
positive integer Specifies the minimum amount of data required before the output is compressed.
If the content-length is not known, the output is compressed only if compression is set to on or force.
compressableMimeType text/html,text/xml,text/plain
Specifies a comma-separated list of MIME types for which HTTP compression is used.
If there isn't a way to configure the HTTPBC, What would be the best way to enable a gzip compression of the XML for the HTTPBC or JBI framework in general?
My first approach might be to just have a Glassfish HTTP-Listener based WebService delegate to the HTTPBC or more directly to the JBI SE components if possible. Maybe a filter on the HTTPBC to gzip the payload? Are there any plans to refactor HTTPBC to use the Glassfish HTTP Listener code, it appears to have more capability and options?
RobI tried it did not work.
Below are the steps which I did:
Test2: Table level compression test
===================================
CREATE TABLE SCOTT.TEST_PMT_TAB_COMP
PMT_ID INTEGER NOT NULL,
PMT_AGCY_NBR CHAR(7 BYTE),
PMT_SBAGCY_NBR CHAR(7 BYTE),
PMT_PAY_DT DATE,
PMT_POL_NBR CHAR(14 BYTE),
PMT_POL_SEQ_NBR CHAR(2 BYTE),
PMT_PRM_INSD_NM VARCHAR2(30 BYTE),
PMT_PAY_TYP_DESC VARCHAR2(20 BYTE),
PMT_PAY_AMT NUMBER(11,2),
PMT_POST_DT DATE
COMPRESS FOR ALL OPERATIONS;
inserting record from the test table:
SQL> insert into SCOTT.TEST_PMT_TAB_COMP select * from SCOTT.TEST_PMT;
5051013 rows created.
SQL> commit;
Commit complete.
SQL> select count(*) from scott.TEST_PMT_TAB_COMP;
COUNT(*)
5051013
Checking size:
SQL> select bytes/1024/1024, segment_name, owner, segment_type, tablespace_name from dba_segments where segment_name='TEST_PMT_TAB_COMP';
BYTES/1024/1024 SEGMENT_NAME OWNER SEGMENT_TYPE TABLESPACE_NAME
776 TEST_PMT_TAB_COMP SCOTT TABLE USERS_DATA01
SQL> select owner, table_name, COMPRESSION, COMPRESS_FOR from dba_tables where table_name='TEST_PMT_TAB_COMP';
OWNER TABLE_NAME COMPRESS COMPRESS_FOR
SCOTT TEST_PMT_TAB_COMP ENABLED OLTP
Now it is occupying more size. -
Using native IIS 6.0 Gzip Compression in front of WLS 8.1 SP5
(IIS 6.0 => ISAPI proxy(/*) => WLS 8.1 SP5 )
Instead of usign a servlet filter and Gzip compression inside the, I would like to test the IIS 6.0 Gzip compression. I want to do this because the IIS server farm is severley underutilized in CPU and seems like the best use of that resource.
It is easy to config this in IIS 6.0. However, I can get IIS served static pages back compressed, but requests proxied to WLS return uncompressed, even though I have configured DLL calls to be zipped inide IIS.
The question is: has anyone done this and if so, what is the config.I am trying to solve the same issue. This is what I've discovered so far. I have been able to get page compression to work with IIS 4.0 and 5.0 using the iisproxy plugin. The trick was to add both "jsp" and "wlforward" extensions to the script file list to compress dynamic files.
IIS 6.0 changed the compression module from an ISAPI plugin to internal code. The configurations look the same, but I am not able to get JSPs to be compressed. I can compress static files, I can compress ASP files so I know I have compression working and I know that I have dynamic file compression working.
This is a great article on configuring compression in IIS, it should get you started in the right direction. I know it's from a .Net site, but the fundamentals are the same and it's very well written.
http://dotnetjunkies.com/Article/16267D49-4C6E-4063-AB12-853761D31E66.dcik
I am now trying to figure out how to get IIS 6.0 dynamic page compression to work with the iisproxy plugin. Any ideas? -
GZip Compression filter for Weblogic 11g.
Hi,
I are using WLS 11g for our application development. I have identified and used PlanetJ gzip compression filter and its working fine in our dev environment. I am looking for alternate commercial supported gzip filter for wls.
Can anybody suggest a commercial gzip filter? Or PlanetJ gzip filter is a good one?. We excepect the application to scale up to 150 users and the filter selected should not be an issue for this. Also is there any official oracle/wls supported gzip filters available?
Any help on this is highly appreciated.
regards
jossy.Thank you for the answer. But currently we are looking to including filter at WLS as the suggestion by you will involve lot of architectural changes. Could you please answer if any weblogic/oracle supported filter is avaialble for enabling compression at WLS.
thanks and regards
jossy. -
Adobe Air needs HTTP gzip compression
Hello
We are developing an Adibe Air application. We use SOAP for
service calls and we depend entirely upon gzip HTTP compression to
make the network performance even vaguely acceptable. SOAP is such
a fat format that it really needs gzip compression to get the
responses down to a reasonable size to pass over the Internet.
Adobe Air does not currently support HTTP gzip compression
and I would like to request that this feature be added ASAP. We
can't release our application until it can get reasonable network
performance through HTTP gzip compression.
Thanks
AndrewHi blahxxxx,
Sorry for the slow reply -- I wanted to take some time to try
this out rather than give an incomplete response.
It's not built into AIR, but if you're using
Flex/ActionScript for your application you can use a gzip library
to decompress a gzipped SOAP response (or any other gzipped
response from a server -- it doesn't have to be SOAP). Danny
Patterson gives an example of how to do that here:
http://blog.dannypatterson.com/?p=133
I've been prototyping a way to make a subclass of the Flex
WebService class that has this built in, so if I can get that
working it would be as easy as using the Flex WebService component.
I did some tests of this technique, just to see for myself if
the bandwidth savings is worth the additional processing overhead
of decompressing the gzip data. (The good news is that the
decompression part is built into AIR -- just not the specific gzip
format -- so the most processor-intensive part of the gzip
decompression happens in native code.)
Here is what I found:
I tested this using the
http://validator.nu/ HTML validator
web service to validate the HTML source of
http://www.google.com/. This
isn't a SOAP web service, but it does deliver an XML response
that's fairly large, so it's similar to SOAP.
The size of the payload (the actual HTTP response body) was
5321 bytes compressed, 45487 bytes uncompressed. I ran ten trials
of each variant. All of this was done in my home, where I have a
max 6Mbit DSL connection. In the uncompressed case I measured the
time starting immediately after sending the HTTP request and ending
as soon as the response was received. In the compressed case I
started the time immediately after sending the HTTP request and
ended it after receiving the response, decompressing it and
assigning the compressed content to a ByteArray (so the compressed
case times include decompression, not just download). The average
times for ten trials were:
Uncompressed (text) response: 1878.6 ms
Compressed (gzip) response: 983.1
Obviously these will vary a lot depending on the payload
size, the structure of the compressed data, the speed of the
network, the speed of the computer, etc. But in this particular
case there's obviously a benefit to using gzipped data.
I'll probably write up the test I ran, including the source,
and post it on my blog. I'll post another reply here once I've done
that. -
How Do I enable gzip compression on Sun One Web Server 6.0
How Do I enable gzip compression on Sun One Web Server 6.0
Hi,
Sun ONE webserver 6.0 is over 5 years old and is reaching end of support life. Please consider upgrading to webserver 6.1sp5 which is free:
http://www.sun.com/download/products.xml?id=434aec1d
or else the preview version of WebServer 7.0 (also free)):
http://www.sun.com/download/products.xml?id=446518d5
For webserver 6.1, the docs for setting up compression are at:
http://docs.sun.com/source/819-0130/agcontnt.html#wp1019634
and
http://docs.sun.com/source/817-6252/npgnsapi.html
Hope this helps -
Discoverer Servlet with Web Cache gzip Compression
Hi,
we have some Discoverer Worksheets which we want to access by ISDN dial in (64 kbit/sec). To speed up the response time when users use this slow connection, we want to activate Web Cache gzip compression.
But even when we enable Web Cache for Discoverer (configuration.xml), Web Cache don't compress pages generated by Discoverer Viewer. We found out that the generated responses contain the "content-disposition" HTTP-Header entry. Are we correct that this is the reason why there is no gzip compression? AND DOES ANYONE KNOW A WORKAROUND???
Best regards,
Matthias SchererWhen you set the caching rules, you can also specify whether or not you want the pages to be compressed. Web Cache compresses html pages and relies on the accept-encoding: gzip from the client header to determine whether or not to send the content compressed.
-
GZip Compression on JSPs?
Hi There,
I was wondering if there is a nice simple way to apply GZip compression to JSPs. I use it at the moment when writing out of a servlet to a browser by doing:
OutputStream out1 = response.getOutputStream();
out = new PrintWriter(new GZIPOutputStream(out1), false);
response.setHeader("Content-Encoding", "gzip");
Then writing to the client by
out.println(<html>... etc etc);
[Note: idea "borrowed" from Marty Hall]
It works a treat, much better performance (esp for dial-up clients).
Can it be done with JSP?
Cheers
matt[1/10/03 19:26:42:395 COT] 29d6a00e WebGroup E SRVE0026E: [Error de servlet]-[JSP 1.2 Processor]: java.lang.IllegalStateException: Ya se ha obtenido OutputStream
at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:450)
at com.ibm.ws.webcontainer.servlet.HttpServletResponseProxy.getWriter(HttpServletResponseProxy.java:123)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:202)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:193)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:246)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:197)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:255)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:249)
at org.apache.jsp._SalidaJSPGZIP2._jspService(_SalidaJSPGZIP2.java(Compiled Code))
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592) -
Hi all:
I want to compress the webservice communication using GZIP. One solution is to
compress the HTTP communication when the client request have the "Accept-Encoding:
gzip, deflate" header. Is it possible another solution in Bea?
Can I compress the HTTP communication with the Bea Weblogic directly or I must
use Apache+plug-in+mod_gzip?
I test my server (version 7.0.2) and the response wasn´t compressed, I don't
know if I have a bad configuration or that the Bea webserver doesn't support gzip
compression.
Thank you in advanceHi, we have the same need.
I tried to use two servlet filters, one for decompression of the request and on
for compression of the response. However, when I wrap the request I get ClassCastException
from WebServiceService
weblogic.webservice.server.servlet.WebServiceServlet.getWebService(WebServiceServlet.java:195)
I think it casts it to a weblogic.servlet.internal.
ServletRequestImpl, which wont work since the filter has wrapped it into another
class.
Any ideas of how to implement compression?
I use WebLogic Server 8.1 SP1.
"Miguel Angel" <[email protected]> wrote:
>
Hi all:
I want to compress the webservice communication using GZIP. One solution
is to
compress the HTTP communication when the client request have the "Accept-Encoding:
gzip, deflate" header. Is it possible another solution in Bea?
Can I compress the HTTP communication with the Bea Weblogic directly
or I must
use Apache+plug-in+mod_gzip?
I test my server (version 7.0.2) and the response wasn´t compressed,
I don't
know if I have a bad configuration or that the Bea webserver doesn't
support gzip
compression.
Thank you in advance -
Gzip compression for http responses?
Is there an easy way to have the WebLogic server compress HTTP responses, something like Tomcat's "compression" parameter (see http://tomcat.apache.org/tomcat-6.0-doc/config/http.html)? Or is the only way to write a servlet filter?
Thanks,
--DanHi,
I'm not aware of any GZip compression on WLS, but if you're using WLS 10.3, you may add the following block to your weblogic.xml :
<weblogic-web-app>
<jsp-descriptor>
<compress-html-template>
true
</compress-html-template>
</jsp-descriptor>
</weblogic-web-app>
It's HTML Compression and it should remove any extra spaces.
Example :
<html>
<body>
<text>
</text>
</body>
</html>
Can be compressed as:
<html><body><text></text></body></html>
That's the only thingl that comes to my mind.
Hope this helps. -
GZip Compression (Yes this old chestnut Again)
I have a client who requires this to work in .NET 4 Client Profile so no 4.5 compression improvements for me. All I need is 2 functions one to compress and one to decompress
both of which take in and return unicode strings. I have spent weeks nay months searching tweaking writing etc. to no avail, I have looked at all the existing snippets I could find but they
all either take in or return a Byte() or Stream or something else and when I tweak them to take/return a string they don't work. What I have so far (a snippet found online tweaked) is:
Public Shared Function Decompress(bytesToDecompress As String) As String
Using stream = New IO.Compression.GZipStream(New IO.MemoryStream(System.Text.Encoding.Unicode.GetBytes(bytesToDecompress)), IO.Compression.CompressionMode.Decompress)
Const size As Integer = 4096
Dim buffer = New Byte(size - 1) {}
Using memoryStream = New IO.MemoryStream()
Dim count As Integer
Do
count = stream.Read(buffer, 0, size)
If count > 0 Then
memoryStream.Write(buffer, 0, count)
End If
Loop While count > 0
Return System.Text.Encoding.Unicode.GetString(memoryStream.ToArray())
End Using
End Using
End Function
Public Shared Function Compress(Input As String) As String
Dim bytes() As Byte = System.Text.Encoding.Unicode.GetBytes(Input)
Using stream = New IO.MemoryStream()
Using zipStream = New IO.Compression.GZipStream(stream, IO.Compression.CompressionMode.Compress)
zipStream.Write(bytes, 0, bytes.Length)
Return System.Text.Encoding.Unicode.GetString(stream.ToArray())
End Using
End Using
End Function
However the problem is if you run the following you get nothing out.
Decompress(Compress("Test String"))
Please help me; I know this has been covered to death elsewhere but I am missing something when tweaking I am sure it's something very simple but it is causing me great stress! Many Many Thanks Indeed!I have now found a workaround which may be useful to others so I am posting it here, it doesn't do exactly what was described above which would be ideal but here is the code:
Private Sub WriteCompressed(ByVal Path As String, Data As String)
Using WriteFileStream As IO.FileStream = IO.File.Create(Path)
Using DataStream As New IO.MemoryStream(System.Text.Encoding.Unicode.GetBytes(Data))
Using Compressor As IO.Compression.DeflateStream = New IO.Compression.DeflateStream(WriteFileStream, IO.Compression.CompressionMode.Compress)
DataStream.CopyTo(Compressor)
End Using
End Using
End Using
End Sub
Private Function ReadCompressed(ByVal Path As String) As String
Using ReadFileStream As IO.FileStream = System.IO.File.OpenRead(Path)
Using DataStream As New IO.MemoryStream
Using Decompressor As IO.Compression.DeflateStream = New IO.Compression.DeflateStream(ReadFileStream, IO.Compression.CompressionMode.Decompress)
Decompressor.CopyTo(DataStream)
Return System.Text.Encoding.Unicode.GetString(DataStream.ToArray)
End Using
End Using
End Using
End Function
Many thanks indeed to everyone who helped and any more input is still welcome. Thanks again!
That's great. You should propose your post as the answer to end the thread.
I just finished with a different method. However I will guess the real issue is that strings can not contain various binary values such as Nulls, Delete, Bell, Backspace, etc (as you can see zeros in RTB2 in the image below which are null
values).
I forgot to add that during testing I was receiving errors because compressed data written to a string then read from a string into bytes and decompressed would return errors during the decompressing that the data did not contain a valid GZip header. Therefore
when GZip compresses it uses some format for the compressed data that is known to Gzip. Otherwise it would not have a header in the compressed data.
You can see what binary values (Decimal) would be in a string at this link
Ascii Table.
Therefore I used the code below to get a string from a RichTextBox1 to a byte array. That is compressed and output to a byte array.
The information in the "compressed" byte array is then converted byte by byte to the bytes value in RichTextBox2 with each value separated by a comma.
To decompress the string in RichTextBox2 that text is split into a string array on a comma. Then each item is converted to a byte into a List(Of Byte). The List(Of Byte).ToArray is then decompressed back into a byte array and that byte array is converted
to a string in RichTextBox3.
I suspect the actual compressed byte array could be written to a binary file using the
BinaryWriter Class if the original strings were supposed to be compressed and attached as files for transfer somewhere.
Option Strict On
Imports System.IO
Imports System.IO.Compression
Imports System.Text
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Location = New Point(CInt((Screen.PrimaryScreen.WorkingArea.Width / 2) - (Me.Width / 2)), CInt((Screen.PrimaryScreen.WorkingArea.Height / 2) - (Me.Height / 2)))
RichTextBox1.Text = My.Computer.FileSystem.ReadAllText("C:\Users\John\Desktop\Northwind Database.Txt")
Label1.Text = "Waiting"
Label2.Text = "Waiting"
Label3.Text = "Waiting"
Label4.Text = "Waiting"
Button2.Enabled = False
End Sub
Dim BytesCompressed() As Byte
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
RichTextBox2.Clear()
RichTextBox3.Clear()
Label1.Text = "Waiting"
Label2.Text = "Waiting"
Label3.Text = "Waiting"
Label4.Text = "Waiting"
If RichTextBox1.Text <> "" Then
Dim uniEncoding As New UnicodeEncoding()
BytesCompressed = Compress(uniEncoding.GetBytes(RichTextBox1.Text))
Label1.Text = RichTextBox1.Text.Count.ToString
Label2.Text = BytesCompressed.Count.ToString
For Each Item In BytesCompressed
RichTextBox2.AppendText(CStr(CInt(Item)) & ",")
Next
RichTextBox2.Text = RichTextBox2.Text.Remove(RichTextBox2.Text.Count - 1, 1)
End If
Button2.Enabled = True
End Sub
Private Shared Function Compress(data As Byte()) As Byte()
Using compressedStream = New MemoryStream()
Using zipStream = New GZipStream(compressedStream, CompressionMode.Compress)
zipStream.Write(data, 0, data.Length)
zipStream.Close()
Return compressedStream.ToArray()
End Using
End Using
End Function
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Button2.Enabled = False
Dim RTB2Split() As String = RichTextBox2.Text.Split(","c)
Dim BytesToUse As New List(Of Byte)
For Each Item In RTB2Split
BytesToUse.Add(CByte(Item))
Next
Label3.Text = BytesToUse.Count.ToString
Dim uniEncoding As New UnicodeEncoding()
RichTextBox3.Text = uniEncoding.GetString(Decompress(BytesToUse.ToArray))
Label4.Text = RichTextBox3.Text.Count.ToString
End Sub
Private Shared Function Decompress(data As Byte()) As Byte()
Using compressedStream = New MemoryStream(data)
Using zipStream = New GZipStream(compressedStream, CompressionMode.Decompress)
Using resultStream = New MemoryStream()
zipStream.CopyTo(resultStream)
Return resultStream.ToArray()
End Using
End Using
End Using
End Function
End Class
La vida loca -
Reverse Proxy Server and gzip compressed pages
Hi ALL!
Does Proxy Server in reverse proxy configuration works with gzip compressed pages? How it will serve different browser versions which are supports compression differently.
Thanks. Happy New Year!Hi,
Domain relaxing will not work in this setting, ref. RFC 2109 http://www.ietf.org/rfc/rfc2109.txt
What you need to do is to create a DNS alias for the portal on domain [something].[company].com. Then create a portal component which returns the MYSAPSSO2 cookie and create an URL iView for it with the DNS alias hostname and add it to the default framework page. In this way, persons logging in will get the MYSAPSSO2 cookie for both domains [sap subdomain].[network domain].local and [network domain].[company].com
Regards
Dagfinn -
Enable Gzip compression for .CSS and .JS files
This may be posted on the wrong forum, but I did not know a better place. My excuses if it should have been posted elsewhere.
Situation:
Several webpages are slow to load. Well, they are pretty large. Google Webmaster Tools suggests to GZIP several .CSS and .JS files to save up to 164 KB per page and my guess is that will make the loading a lot faster. I looked around the hosting site for tools to enable GZIP compression, but did not find them.
Question:
How can I enable GZIP compression on my pages and how do I do that? Does it pay to extend GZIP to the .HTML pages as well or is that not possible?
Reference: PPBM5 Benchmark and Holländische Poffertjes
The hosting company is 1and1.comBarry, go to: http://ppbm5.com/Benchmark5.html and use one of the buttons for the performance charts.
There are 5 HTML pages, each around 740 KB. Compressing them would make a huge difference I think, but also the 164 KB that Google mentions.
These pages contain the same functionality, but different content. -
Gzip compression coldfusion MX 7 !?
Is it possible to automatically enable gzip compression for all pages ? I really have no idea where to start.
using this will reduce your whitespace.
<CFPROCESSINGDIRECTIVE SUPPRESSWHITESPACE="true">
*Entire page*
</CFPROCESSINGDIRECTIVE>
Remove all inline style and script content, placing it in appropriate files and using the correct tags to link them in. dont forget the </script> tags, <script> cannot self close.
CSS and JS files will be cached, so theres a real advantage there. Also, let google host jQuery or what ever other library you're using. Google it for more.
Investigate your page caching (on the client side) options by using meta tags,
Remove/replace table layout designs to further reduce the weight of your markup.
Change your provider or get a low end private hosted box that you can RDP into and work over as you see fit.
D. -
Gzip compression issues from using a proxy?
Hello I am unable to load some websites now from suspected gzip compression issues? I have been using a proxy and now my firefox browser is messed up Plz Help [email protected]
ThanksIt is possible to autenticate to a proxy server, but the question is what tye of authentication your proxy is carrying out . "Basic" or "digest".If it is Basic then you can use Base64 authentication scheme. You have to first set the System property variable to find proxy server (like port and IP Address)
Maybe you are looking for
-
I tried to sync my phone for the first time and somehow it restored and i lost all my data. Help!
-
How to export all photos to SD card
How do I get all photos to an SD card from iMac?
-
Yoga 2 Bluetooth not stable with 7260 AC card
Hi everyone, I'm having a problem with my Microsoft Wireless Bluetooth 8000 presenter mouse staying connected via Bluetooth. I have installed the latest Kona Wifi driver and the latest Bluetooth driver from the Lenovo site. It's my opinion that the
-
CC&B Data Migration - Architecture
I need to migrate from different legacy systems (not oracle) to CC&B. The CC&B documentation provides an overview of the migration requirements but I haven't found any documentation about technical architecture. We haven't the data migration tool ava
-
CRASHING MACBOOK PRO!!!
Hey guys! I don't know what is wrong? I heard that macs could not crash, one of the reasons why I bought this new MacBook Pro. Whenever i'm on safari, at some point during my net surfing, it will crash. Theres no specific time, it happens when i clic