I wonder know, if Google App Engine's service URL Fetch uses proxy cache, which is discussed in other thread? My question is: if I send request using URL Fetch from my app on GAE to my app (to some handler), will the result be cached in this proxy?
Thanks.
Set an appropriate Cache-control header on URLFetch:
Python
result = urlfetch.fetch(url, headers = {'Cache-Control' : 'max-age=0, must-revalidate'})
GO
client := urlfetch.Client(c)
req, err := http.NewRequest("GET", check.Url, nil)
req.Header.Add("Cache-Control", `max-age=0, must-revalidate`)
resp, err := client.Do(req)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With