<p>Will the code below work if the clock on the server is ahead of the clock on the client?</p>

<pre><code>Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1))
</code></pre>

<p>EDIT: the reason I ask is on one of our web apps some users are claiming they are seeing the pages ( account numbers, etc ) from a user that previously used that machine.  Yet we use the line above and others to 'prevent' this from happening.</p>

[{'answer_id': 57407, 'author': 'David Webb', 'author_id': 3171, 'author_profile': 'https://Stackoverflow.com/users/3171', 'pm_score': 3, 'selected': True, 'text': '<p><a href="https://stackoverflow.com/questions/49547/making-sure-a-webpage-is-not-cached-across-all-browsers">This question</a> covers making sure a webpage is not cached.  It seems you have to set several properties to ensure a web page is not cached across all browsers.</p>\n'}, {'answer_id': 57413, 'author': 'Joseph Bui', 'author_id': 3275, 'author_profile': 'https://Stackoverflow.com/users/3275', 'pm_score': 0, 'selected': False, 'text': '<p>Your problem could be caused by the browser remembering data entered into form fields. You can turn this off like this:</p>\n\n<pre><code>&lt;input autocomplete="off"&gt;\n</code></pre>\n'}, {'answer_id': 57715, 'author': 'Andrew Johnson', 'author_id': 5109, 'author_profile': 'https://Stackoverflow.com/users/5109', 'pm_score': 0, 'selected': False, 'text': "<p>As far as I can tell, the browser will check the expiry date against the local clock (although it will account for the time zone), so the code in your question may not work as you expect if the client's clock is inaccurate.  Most commonly, this happens when their time looks right but is set to the wrong timezone, meaning the UTC timestamps are actually out by several hours.</p>\n\n<p>You could try setting a much older timestamp, say: 0000 1st Jan 1970 GMT  (epoch)</p>\n\n<p>I think the code you have should work with the server side caching, but you can more explicitly disable it with:</p>\n\n<pre><code>Response.Cache.SetNoServerCaching();\n</code></pre>\n"}]
['https://Stackoverflow.com/questions/57380', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2357/']