WebView 3.26: disable cache for pages with param (site/?par=val)

git-svn-id: svn://kolibrios.org@8462 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2020-12-21 01:59:34 +00:00
parent 2f20ba26d3
commit 8b8d6bf12d
6 changed files with 218 additions and 143 deletions

View File

@@ -41,7 +41,7 @@
// DATA //
// //
//===================================================//
char version[]="WebView 3.25";
char version[]="WebView 3.26";
#define DEFAULT_URL URL_SERVICE_HOMEPAGE
@@ -231,9 +231,11 @@ void main()
http.hfree();
if (http_get_type==PAGE) {
history.add(http.cur_url);
cache.add(http.cur_url, http.content_pointer, http.content_received, PAGE);
if (!strchr(http.cur_url, '?')) {
cache.add(http.cur_url, http.content_pointer, http.content_received, PAGE);
}
LoadInternalPage(http.content_pointer, http.content_received);
free(http.content_pointer);
LoadInternalPage(cache.current_buf, cache.current_size);
}
else if (http_get_type==IMG) {
_IMG_RES: