-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disable browser/webkit caching ? #203
Comments
Hi @nwohaibi, Thanks!
There is a way to do it in QWebKit (see http://doc.qt.io/qt-4.8/qnetworkrequest.html#CacheLoadControl-enum), but currently this option is not exposed by Splash. It is a good feature to have, but we need to design a public API for it and implement it.
HAR entries already contain all HTTP requests, not just the ones with 200 http status code. In case of cache some records may be missing because they are not requested at all. It should be possible to add them to the output as well, but I haven't checked the details; implementation may be not so straightforward. |
Thanks for taking the time to clarify :) |
Hi @kmike
I used to believe that, and I even tried to make a PR that way. However later I realized that it is not the case. (Proved by local testings) The As WebKit also has its own in-memory cache (for scripts, stylesheets, images, etc.), that is believed to be the real cause. In some specific scenarios it's required to strictly disable any kind of caching. Thus I made PR #339 for this. |
Hi,
Thanks for the wonderful work on Spalsh
I just wanted to know if there is any way to disable browser caching of files?
Or maybe return all HTTP requests made in har/log/entries, not just the ones with 200 http status ?
thanks in advance
The text was updated successfully, but these errors were encountered: