Opened 19 months ago

Closed 4 weeks ago

#2719 closed enhancement (fixed)

FIX - gzip all text XML / JSON / TEXT contents from petascope to clients

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.2
Component: petascope Version: 10.2
Keywords: Cc:
Complexity: Medium

Description

Petascope can be enhanced to gzip all text contents when:

  • A client sends a HTTP header contains this message
     Accept-Encoding: gzip
    
  • Then, it will compress text from response by Java code (no Tomcat configuration here) and attach this header:
     Content-Encoding: gzip
    
  • Web browser will automatically extract the content from it.

This is backward-compatibility, for example, older petascope (or plain client like curl) will just see the raw text as it is.

Change History (1)

comment:1 by Bang Pham Huu, 4 weeks ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.