[
https://issues.apache.org/jira/browse/SOLR-4311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Matheis (steffkes) updated SOLR-4311:
--------------------------------------------
Attachment: SOLR-4311.patch
[[email protected]], [~erickerickson] would you mind reviewing this
Patch?
The Idea behind this change: avoid using cached files, especially when
upgrading versions (which happend a few times while users upgraded from 4.1 to
4.2).
Requesting Data is covered with jQuery, it appends a timestamp at every
requested url, but the js/css files don't change that often, so my idea was
using this {{5.0.0.2013.03.14.18.59.51}} identifier, which comes from
{{org.apache.solr.core.SolrCore.class.getPackage}}.
So, finally, "the Question" ;>
bq. That does actually already work -- just wanted to confirm it's okay
introducing this, since it's (from my pov) "core-level"-information" and i'm
using it here on the "top-level"
> Luke and Core admin ajax requests shouldn't be cached in admin
> --------------------------------------------------------------
>
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]