Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8BEFF3C5 for ; Tue, 19 Mar 2013 21:01:20 +0000 (UTC) Received: (qmail 39665 invoked by uid 500); 19 Mar 2013 21:01:18 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 39586 invoked by uid 500); 19 Mar 2013 21:01:18 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 39542 invoked by uid 99); 19 Mar 2013 21:01:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 21:01:17 +0000 Date: Tue, 19 Mar 2013 21:01:17 +0000 (UTC) From: "Commit Tag Bot (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-4311) Admin UI - Optimize Caching Behaviour MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-4311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13606799#comment-13606799 ] Commit Tag Bot commented on SOLR-4311: -------------------------------------- [trunk commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1458509 SOLR-4311: move CHANGES entry. > Admin UI - Optimize Caching Behaviour > ------------------------------------- > > Key: SOLR-4311 > URL: https://issues.apache.org/jira/browse/SOLR-4311 > Project: Solr > Issue Type: Bug > Components: web gui > Affects Versions: 4.0 > Reporter: Chris Bleakley > Assignee: Stefan Matheis (steffkes) > Fix For: 4.3, 5.0, 4.2.1 > > Attachments: SOLR-4311.patch > > > Although both the luke and core admin handlers set http caching to false in the response headers** I believe the Cache-Control settings are ignored during ajax requests in certain browsers. This can be a problem if you're refreshing admin to get the latest do count. It can also be a problem when you compare the count of "Num Docs" on the main index page (/solr/#/CORE) vs the count on the core admin page (/solr/#/~cores/CORE). Consider that if you first visit the main index page, add and commit 100 docs, and then visit core admin the doc count will be off by 100. > > If this is an issue the ajax requests can explictly set caching to false ( http://api.jquery.com/jQuery.ajax/#jQuery-ajax-settings ) ... for example, inserting 'cache: false,' after line 91 here: https://github.com/apache/lucene-solr/blob/branch_4x/solr/webapp/web/js/scripts/dashboard.js#L91 > > ** https://github.com/apache/lucene-solr/blob/branch_4x/solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java#L167 > ** https://github.com/apache/lucene-solr/blob/branch_4x/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java#L216 > > Tested using Chrome Version 24.0.1312.52 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org