Hi,

On 30/11/12 05:12, João Melo wrote:
> the actual DSpace implementation already supports If-Modified-Since
> http parameter (checked against versions 1.8+).

Careful though, if you're using XMLUI then the If-Modified-Since request
header gets different results for item pages when the request comes from
a "known crawler" compared to from anyone else.

Known crawler: XMLUI will respond with 304 (not modified) if the
timestamp provided is after the item's last modified timestamp (to
seconds precision I think)
Anyone else: XMLUI will respond with 304 only if the timestamp provided
is after the timestamp that the item page was last added to the Cocoon
cache.

To see details about the logic (1.8.x), look here:
https://github.com/DSpace/DSpace/blob/dspace-1_8_x/dspace-xmlui/dspace-xmlui-api/src/main/resources/aspects/ViewArtifacts/sitemap.xmap#L141
To see the list of known crawlers (1.8.x), look here:
https://github.com/DSpace/DSpace/blob/dspace-1_8_x/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/sitemap.xmap#L127

>From what I can tell, the "last modified" response header will always
correspond to the timestamp when the item page was last added to the
Cocoon cache, regardless of the user agent making the request. In fact
this appears to have brought down one of "my" instances because it made
a Google Search Appliance decide to re-crawl every item page in
10-minute intervals... But it looks like the "last modified" behaviour
comes from deep within Cocoon and can't be changed easily. Though I
noticed that demo.dspace.org's XMLUI doesn't send "last modified" for
item pages, so it looks like something has changed between DSpace 1.8.x
and 3.0.

(Also, if anyone on the list has run into / solved problems with GSA and
DSpace, I'd be happy to hear about it...)

cheers,
Andrea

-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to