Flags Option
What this does is allow you to set some options for how WebParser connects to a remote HTTP/HTTPS resource.
These are set on a "parent" WebParser measure, and multiple flags can be set by separating them with the | (pipe) character.
The ones you might be the most interested in are:
Resync
Only downloads if the resource has been modified since the last time it was downloaded. Otherwise the cache is used. This is the default if no Flags are set.
ForceReload
Forces a download of the requested resource from the origin server, not from the cache.
NoCookies
Does not add cookie headers to requests, and does not add any cookies set by the resource to the cookie database. Does not "send" or "accept" cookies from any resource.
NoCacheWrite
Does not add the returned resource data to the cache.
In particular, the NoCookies flag seems to correct the issues with skins that parse the JSON on weather.com.
Really, there is no reason to ever allow WebParser to accept or send cookies, this can almost never do any good, and only potentially cause some mischief.
Just FYI, this is how I am setting all my WebParser measures going forward:
Code: Select all
Flags=Resync | NoCookies
UserAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Note that if you distribute your skin(s) to someone who is not on the current 4.4 beta of Rainmeter, these settings will do no harm, as it will transparently ignore the Flags option, and will default to the single setting of "Resync" that has always been the default behavior. If on the other hand, you get a complaint from your user(s) that a site is misbehaving with WebParser, you might want to suggest they upgrade to the latest beta.