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 179783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:28:06+00:00 2026-05-11T14:28:06+00:00

In the following example what is cached correctly? Is there a Vary-Header I have

  • 0

In the following example what is cached correctly? Is there a Vary-Header I have to set server-side for the GET string?

import httplib2 h = httplib2.Http('.cache') resp, content = h.request('http://test.com/list/') resp, content = h.request('http://test.com/list?limit=10') resp, content = h.request('http://test.com/list?limit=50') 
  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T14:28:07+00:00Added an answer on May 11, 2026 at 2:28 pm

    httplib2 uses the full URI for the cache key, so in this case each of the URLs you have in your example will be cached separately by the client.

    For the chapter and verse from the __init__.py file for httplib2, if you would like proof, have a look at call to the cache on around line 1000:

    cachekey = defrag_uri cached_value = self.cache.get(cachekey) 

    The defrag_uri is defined by the function urlnorm (line 170ish) and includes the scheme, authority, path, and query.

    Of course, as you know, the server may interpret the definition of ‘resource’ quite differently and, so, may still return cached content. Since it sounds like you’re controlling the server in this case, you have full control there, so no issues. Either way, on the client side, there would be no client-cached values used for the first call to each of the 3 URLs in your examples.

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

Sidebar

Related Questions

Consider following example : public class SomeBusinessLayerService : DataService<MyEntityContainer> { [WebInvoke] void DoSomething(string someParam)
The following example will not compile for me: #include <iostream> #include <functional> #include <string>
Given the following example, why do I have to explicitly use the statement b->A::DoSomething()
Let me use the following example to explain my question: public string ExampleFunction(string Variable)
Consider the following example. It consists of two header files, declaring two different namespaces:
I have the following example class: Test.h: @interface Test : UIButton { NSString *value;
For example I have the following tables resulting from: CREATE TABLE A (Id int,
Example: Suppose in the following example I want to match strings that do not
In the following example should I expect that values.size() will be called every time
I was trying the following example, but with external URLs: Using WebViews The example

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.