Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21842

[RESOLVED] How to disable cache in xmlhttprequest?

$
0
0
Hi,
Code:

Private Function obj() As String
    Dim html As IXMLHTTPRequest
    Set html = CreateObject("Microsoft.XMLHTTP")
    With html
        .open "GET", <url>, False
        .setRequestHeader "pragma", "no-cache"
        .setRequestHeader "cache-control", "no-store, must-revalidate, private"
        .send
    End With
    obj = html.responseText
    Set html = Nothing
End Function

This code not working, IE cached my files how to fix this problem?
Thanks.

Viewing all articles
Browse latest Browse all 21842

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>