-1
$\begingroup$

I'm trying to do down votes when I see that a post is not useful. The website tells me in a blue box that I could comment, what would I want to improve. Nevertheless, when I go to my profile and come back, my comment and down vote disappeared.

Why is this happening? I think it's somehow like a lag.

Note: I do have enough reputation $\longrightarrow$ Reputation $\gt$ 125

$\endgroup$
  • $\begingroup$ Did you try to refresh the page? And BTW how can you be sure that your downvote disappeared - privilege to see number of downvotes and upvotes separately comes at 1k? $\endgroup$ – Martin Sleziak Feb 16 '16 at 21:32
6
$\begingroup$

You're right: it's somehow like a lag. The technical term is caching. The process goes like this:

  1. You get a question page from the server

  2. You vote or comment on the page. This has two effects:

    a) The information about your action is sent to the server

    b) Locally, your vote/comment are added to the page by JavaScript, so you can see what you did. Such local changes only affect the page as it's seen right now; they vanish on another pageload.

  3. Now you navigate to another page and then come back. To save the networking and computational resources, you are not given an updated version of the page: it's considered that the page you looked at a few seconds ago is still good enough. In particular, this page does not reflect your vote or comment.

  4. Solution: hit refresh (F5) to see the updated page, reflecting your actions.

Background reading: Does Stack Exchange use caching and if so, how?

$\endgroup$
  • $\begingroup$ Thanks. Another question: Why do I not get my badge of critic? Same reason? Takes time? $\endgroup$ – Pichi Wuana Feb 16 '16 at 21:41
  • 1
    $\begingroup$ You'll get it soon. Badges are issued by a script that runs on a schedule, at some intervals. $\endgroup$ – user147263 Feb 16 '16 at 21:43
  • $\begingroup$ Oh... okay. Thanks. $\endgroup$ – Pichi Wuana Feb 16 '16 at 21:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .