Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28522 > unrolled thread

How to handle client side caching with jquery? My jquery service http request headers always carrying Cache-Control:no-cache Pragma:no-cache though i haven't added anything.

Started byUser1234 <selvaonline@gmail.com>
First post2015-08-12 12:30 -0700
Last post2015-08-14 08:50 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.javascript


Contents

  How to handle client side caching with jquery? My jquery service http request headers always carrying Cache-Control:no-cache Pragma:no-cache though i haven't added anything. User1234 <selvaonline@gmail.com> - 2015-08-12 12:30 -0700
    Re: How to handle client side caching with jquery? My jquery service http request headers always carrying Cache-Control:no-cache Pragma:no-cache though i haven't added anything. JJ <jj4public@vfemail.net> - 2015-08-13 23:27 +0700
      Re: How to handle client side caching with jquery? My jquery service http request headers always carrying Cache-Control:no-cache Pragma:no-cache though i haven't added anything. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-08-14 08:50 +0200

#28522 — How to handle client side caching with jquery? My jquery service http request headers always carrying Cache-Control:no-cache Pragma:no-cache though i haven't added anything.

FromUser1234 <selvaonline@gmail.com>
Date2015-08-12 12:30 -0700
SubjectHow to handle client side caching with jquery? My jquery service http request headers always carrying Cache-Control:no-cache Pragma:no-cache though i haven't added anything.
Message-ID<f7a41eaf-19a8-4d6a-9087-cfc23d3c088f@googlegroups.com>
I want to do client side caching for my service response.  My jquery service http request headers always carrying Cache-Control:no-cache Pragma:no-cache though i haven't added anything. How this get appened in my service request http headers?

[toc] | [next] | [standalone]


#28524

FromJJ <jj4public@vfemail.net>
Date2015-08-13 23:27 +0700
Message-ID<1svdevoki2rxh$.15cme10r96mrb.dlg@40tude.net>
In reply to#28522
On Wed, 12 Aug 2015 12:30:53 -0700 (PDT), User1234 wrote:
> I want to do client side caching for my service response.  My jquery
> service http request headers always carrying Cache-Control:no-cache
> Pragma:no-cache though i haven't added anything. How this get appened in
> my service request http headers?

POSTed requests shouldn't be cacheable.
HTTPS requests shouldn't be cacheable.
Requests with query string (e.g.: abc.com/?query=what) shouldn't be
cacheable.

If you do, or expect it to be, you'll break something.

[toc] | [prev] | [next] | [standalone]


#28528

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-08-14 08:50 +0200
Message-ID<4216765.rDoQC2oqx9@PointedEars.de>
In reply to#28524
JJ wrote:

> On Wed, 12 Aug 2015 12:30:53 -0700 (PDT), User1234 wrote:
>> I want to do client side caching for my service response.  My jquery
>> service http request headers always carrying Cache-Control:no-cache
>> Pragma:no-cache though i haven't added anything. How this get appened in
>> my service request http headers?
> 
> POSTed requests shouldn't be cacheable.
> HTTPS requests shouldn't be cacheable.
> Requests with query string (e.g.: abc.com/?query=what) shouldn't be
> cacheable.
> 
> If you do, or expect it to be, you'll break something.

The answer misses the point of the question, and ends in gibberish.

The “Cache-Control: no-cache” HTTP header field would be appended to the 
HTTP response by the entity that sent the response, the HTTP/Web server.  
Under which conditions it is appended – perhaps based on request header 
fields – can only be told by the person who set up the HTTP/Web server.

See also: <http://www.mnot.net/cache_docs/>

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web