Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WinInet to WinHTTP -- Where is INTERNET_FLAG_RELOAD??

188 views
Skip to first unread message

Jonathan

unread,
Dec 5, 2002, 5:29:44 PM12/5/02
to
With WinInet, one has to worry about caching responses locally. Is that an
issue in WinHTTP? I noticed that there are only proxy cache options in
WinHTTP and via script one does not appear to have even that (without
writing raw headers).

Thanks,
Jonathan


Stephen Sulzer [Microsoft]

unread,
Dec 6, 2002, 11:13:16 PM12/6/02
to

Hello Jonathan,

WinHTTP does not implement a local HTTP response cache. The only cache
options, as you have noted, are related to suppressing the proxy server (if
there is one) from replying with a response from its cache.

You can instruct the proxy server to not use its cache by adding "Pragma:
No-Cache" and "Cache-Control: No-Cache" headers to your HTTP request. Or you
can use the WINHTTP_FLAG_BYPASS_PROXY_CACHE flag with the WinHttpOpenRequest
Win32 API.


Regards,

Stephen Sulzer
Microsoft Corporation


This posting is provided "AS IS" with no warranties, and confers no rights.

"Jonathan" <jona...@NO.SPAM.com> wrote in message
news:e7pMN3KnCHA.1616@TK2MSFTNGP12...

0 new messages