Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7965449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:09:35+00:00 2026-06-04T06:09:35+00:00

Possible Duplicate: Is it possible to force jQuery to make AJAX calls for URLs

  • 0

Possible Duplicate:
Is it possible to force jQuery to make AJAX calls for URLs with gzip/deflate enabled?

I’m going across two different domains with jsonp. Domain1 asks Domain2 for some json data using $.getJSON with a callback parameter and that works great, no problems there.

Domain2 can also serve the json data gzipped.

I’d like to utilize this feature but I don’t know how to request it from Domain1 using jQuery’s $.getJSON.

Is this possible and if so can you please give me an example (or any other workaround).

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T06:09:36+00:00Added an answer on June 4, 2026 at 6:09 am

    gzipping your http traffic is a server option that is transparent to the actual processes that work with the content (your script in your case). The browser takes care of the gzipping, but it will only work if both sides of the connection support it (this is communicated in the request header). Also you must enable it server side (for instance use mod_deflate in apache)

    You state that the server on domain2 supports gzipping, so if you configured it correctly all traffic that is “gzippable” will get gzipped automatically. No extra work on your part is necessary.

    If you want to know if yrou traffic gets gzipped take a look at the response headers of your jsonp call. They should say that gzip is used. You can do this in chrome for instance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: jquery: how to force a pdf download automatically? Afternoon folks, I have
Possible Duplicate: iOS - Detecting whether or not device support phone calls? I'm writing
Possible duplicate: why does the css min-width attribute not force a div to hae
Possible Duplicate: Force Download an Image Using Javascript Basically I want to have the
Possible Duplicate: How to force C# App to run as administrator on Windows 7
Possible Duplicate: Preventing Brute Force Logins on Websites Limiting user login attempts in PHP
Possible Duplicate: Forcing Garbage Collection in Java? Can I Force Garbage Collection in Java
This is a possible duplicate. Couldn't find the exact one, I remember going through
Possible Duplicate: jQuery autocomplete UI- I'd like it to start the search onfocus without
Possible Duplicate: How do I make a list with checkboxes in Java Swing? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.