trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam W. Dace" <colonelforbi...@gmail.com>
Subject Re: how to configure our ATS not to cache a specific request
Date Sat, 06 Dec 2014 20:22:25 GMT
I actually have my forward-only web proxy set to be pretty aggressive about
caching.

I then use cache.config to override that behavior for the few sites that I
know caching wouldn't make sense for.

My cache.config looks like this:

dest_host=mlghds-lh.akamaihd.net scheme=http action=never-cache
dest_domain=ttvnw.net scheme=http action=never-cache
dest_domain=twitch.tv scheme=http action=never-cache

It sounds like you may want to use url_regex instead.

The documentation for cache.config goes into more detail on all of that.

You can find it here:
https://docs.trafficserver.apache.org/en/latest/reference/configuration/cache.config.en.html

Hope this helps.

Regards,

Adam

On Sat Dec 06 2014 at 1:13:49 PM Raj Sharma <Raj.Sharma@makemytrip.com>
wrote:

> Yes this response has been cached at ATS level.
> For a specific request if any configuration available then kindly let me
> know.
> I think in cache.config file we can set action for not to cache a specific
> url. If it would be possible then what would be the syntax for this.
>
>
> -----Original Message-----
> From: Leif Hedstrom [mailto:leif@ogre.com]
> Sent: Sunday, December 07, 2014 12:13 AM
> To: dev@trafficserver.apache.org
> Subject: Re: how to configure our ATS not to cache a specific request
>
> And that response is being cached? Unless you have made some other configs
> the force that to be cached, I can't see how that response is cacheable.
>
> -- Leif
>
>
>
> > On Dec 6, 2014, at 9:10 AM, Raj Sharma <Raj.Sharma@makemytrip.com>
> wrote:
> >
> > Hi team,
> >
> > I am a software developer at MakeMyTrip.com.
> > Can you guys tell me that how we can restrict ATS to not to cache a
> specific request.
> >
> > Below are the details of headers that are being generated :
> >
> > Request Headers-
> > Accept                  text/html,application/xhtml+
> xml,application/xml;q=0.9,*/*;q=0.8
> > Accept-Encoding gzip, deflate
> > Accept-Language en-US,en;q=0.5
> > Cache-Control           no-cache
> > Connection              keep-alive
> > Cookie                  s_pers=%20s_vnum%3D1420378693537%2526vn%253D2%
> 7C1420378693537%3B%20s_depth%3D4%7C1417881526516%3B%20s_lv%
> 3D1417879731320%7C1512487731320%3B%20s_lv_s%3DLess%2520than%25207%
> 2520days%7C1417881531320%3B%20gpv_pn%3Dfunnel%253Adomestic%2520flights%
> 253Alisting%7C1417881531322%3B%20s_invisit%3Dtrue%
> 7C1417881531323%3B%20s_nr3650%3D1417879731324-Repeat%
> 7C1733239731324%3B%20s_nr30%3D1417879731324-Repeat%
> 7C1420471731324%3B%20s_nr120%3D1417879731325-Repeat%
> 7C1428247731325%3B%20s_nr7%3D1417879731325-Repeat%7C1418484531325%3B;
> MMYTUUID=24617072-3124-7878-512f-4648544f244b.1417786694315570;
> s_vi=[CS]v1|2A40DAA3051D0CA0-60000132E0080072[CE]; MobileAB=mhp_a9;
> mbox=PC#1417786715455-897237.22_15#1419089325|session#
> 1417878412032-131560#1417881585|check#true#1417879785;
> AB=respAB---mhp_c18___AB---mhp_c18; __sonar=2069150245738174793; _b=1;
> emailIdE=""; s_sess=%20s_cc%3Dtrue%3B%20s_ppv%3Dfunnel%25253Adomestic%
> 252520flights%25253Alisting-interstitial%252C100%252C100%252C653%3B%20s_sq%3D%3B;
> __CT_Data=gpv=2&apv_15275_www03=1&apv_15276_www03=1; WRUID=0; has_js=1;
> NMF5COM=372400138.20480.0000; VSF5DOTCOM_SEO=352998922.20480.0000
> > Host                    www.makemytrip.com
> > Pragma                  no-cache
> > User-Agent              Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like
> Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0
> Mobile/7A341 Safari/528.16
> >
> > Response Headers-
> > Age                     1
> > Cache-Control           no-cache, must-revalidate, post-check=0,
> pre-check=0
> > Connection              keep-alive
> > Content-Encoding        gzip
> > Content-Length  256
> > Content-Type            application/json; charset=utf-8
> > Date                    Sat, 06 Dec 2014 15:41:18 GMT
> > Expires                 Sun, 19 Nov 1978 05:00:00 GMT
> > Server                  ATS/3.2.0
> > Vary                    User-Agent,Accept-Encoding
> > X-Drupal-Cache  MISS
> > X-Powered-By            PHP/5.5.9
> > max-age         0
> >
> > Thanks in advance,
> > Raj
> >
> > The contents of this email, including the attachments, are PRIVILEGED
> AND CONFIDENTIAL to the intended recipient at the email address to which it
> has been addressed. If you receive it in error, please notify the sender
> immediately by return email and then permanently delete it from your
> system. The unauthorized use, distribution, copying or alteration of this
> email, including the attachments, is strictly forbidden. Please note that
> neither MakeMyTrip nor the sender accepts any responsibility for viruses
> and it is your responsibility to scan the email and attachments (if any).
> No contracts may be concluded on behalf of MakeMyTrip by means of email
> communications.
>
> The contents of this email, including the attachments, are PRIVILEGED AND
> CONFIDENTIAL to the intended recipient at the email address to which it has
> been addressed. If you receive it in error, please notify the sender
> immediately by return email and then permanently delete it from your
> system. The unauthorized use, distribution, copying or alteration of this
> email, including the attachments, is strictly forbidden. Please note that
> neither MakeMyTrip nor the sender accepts any responsibility for viruses
> and it is your responsibility to scan the email and attachments (if any).
> No contracts may be concluded on behalf of MakeMyTrip by means of email
> communications.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message