Worked Examples

Apply freshness and cache handling — Unified Discovery

Apply freshness and cache checks to scientific discovery results, distinguishing provider updates, local indexes, cached responses, and pinned research revisions.

ProductResearch LibrarianUpdatedNovember 15, 2026Reading time30 minutes

Application: Unified Discovery
Cross-application area: Library / Research / Workbench / Site Intelligence / Platform Core
Classification: Practical Guides / Freshness and Cache Handling
Audience: Researchers, data stewards, research librarians, integration engineers, scientific software developers, and platform operators
Technical level: Intermediate to advanced
Reference environment: Python 3.10 or later; standard library
Relevant standards: RFC 9110, RFC 9111, RFC 5861, W3C DCAT 3, W3C PROV-O, and FAIR Guiding Principles
Primary outputs: Timestamp-aware discovery record, cache decision, provider revalidation result, historical snapshot reference, scientific freshness assessment, and reproducible evidence record
Estimated reading time: 17–22 minutes; 35–45 minutes including the exercises

1. Purpose and expected outcome

Unified Discovery may retrieve scientific records from external providers, local indexes, cached queries, and previously preserved research artifacts.

Those records can represent different states of the same source. An apparently current discovery result may contain older scientific observations, while an archived result may intentionally preserve an earlier state needed for reproducibility.

The central objective is to distinguish the origin, timing, and version of each returned record so that researchers can determine whether it is appropriate for their intended use.

Primary acceptance condition: Users must be able to identify the observation time and retrieval timestamp of selected research data, or see an explicit indication when those values are unknown or unavailable.

Where relevant, the interface should also distinguish provider modification time, successful revalidation time, cache age, source revision, and archived status.

2. Distinguish the different meanings of freshness

Freshness is not a single property. It depends on the question being asked.

Table 1. Distinct freshness concepts
Concept Meaning Example
Observation freshness How recently the underlying scientific phenomenon was measured A precipitation observation recorded yesterday
Provider publication time When a provider released a resource A dataset published this month
Provider modification time When the provider reports changing the resource A metadata correction issued last week
Retrieval time When the application obtained the response A discovery request completed at 12:00 UTC
Validation time When an existing representation was successfully checked against the provider An ETag-based revalidation succeeded at 12:30 UTC
Cache freshness Whether reuse is permitted under the applicable caching rules A representation still within its authorized freshness lifetime
Archive time When an immutable or versioned research snapshot was preserved A research snapshot created for a historical analysis

These timestamps must not be substituted for one another.

In particular, a recent retrieval or revalidation does not make the underlying scientific observations recent.

3. Establish the research context

Before selecting a freshness policy, identify the purpose for which the data will be used.

Record:

  • Research question and intended inference.
  • Responsible project and organization.
  • Authorized user or service role.
  • Provider and authoritative source identifier.
  • Required source revision or collection version.
  • Scientific observation period.
  • Maximum acceptable observation age, where relevant.
  • Maximum acceptable cache age or validation interval.
  • Whether historical reproducibility or current monitoring is the priority.
  • Applicable access, licensing, privacy, and retention requirements.

For a historical climate analysis, an archived dataset may be the correct scientific input.

For operational monitoring, an old observation may be unsuitable even if it was freshly returned by the provider.

4. Distinguish live, cached, revalidated, and archived results

Table 2. Proposed discovery result classifications
Classification Description Required disclosure
Provider response Representation received from an upstream provider during a request Retrieval time, source identity, and provider revision when available
Fresh cache Stored representation reusable under applicable policy Original retrieval time and cache status
Revalidated cache Existing representation validated through an authorized conditional request Original retrieval time and successful validation time
Stale cache Representation outside its ordinary freshness lifetime Age, reason for reuse if permitted, and freshness warning
Archived snapshot Preserved version for historical reference or reproducibility Snapshot identity, source version, and preservation time
Unknown freshness Required timing or provenance evidence is missing Explicit unknown status rather than an inferred date

An archived snapshot should not be described as the latest provider state unless separately verified.

A stale cache should not be silently presented as a successful current-provider retrieval.

5. Preserve observation timestamps independently

Scientific observation time describes the data rather than the network transaction.

Depending on the resource, observation time may be:

  • A single instant.
  • A sampling interval.
  • A start and end date.
  • A multidimensional time coordinate.
  • A collection period containing missing intervals.
  • A series of event timestamps.

Do not reduce a dataset’s full observation period to the date on which its metadata were retrieved.

Where observations cover a period, preserve the authoritative start, end, temporal resolution, and relevant calendar or time-zone conventions.

If the observation time is unknown, explicitly state that it is unknown. Do not replace it with the retrieval timestamp.

6. Understand HTTP cache behavior

RFC 9111 defines HTTP caching behavior, including freshness, validation, and restrictions on reuse of cached responses.

Important response and request directives include:

Table 3. Selected HTTP cache controls
Directive Meaning
Cache-Control: max-age Specifies a freshness lifetime in seconds for the applicable response
Cache-Control: no-cache Requires successful validation before reuse to satisfy another request
Cache-Control: no-store Prohibits storing the message under the applicable HTTP caching rules
Cache-Control: private Restricts storage by shared caches, while allowing private-cache behavior where otherwise permitted
Cache-Control: must-revalidate Restricts reuse after a response becomes stale until successful validation
stale-while-revalidate Allows certain stale reuse during asynchronous revalidation within the defined conditions
stale-if-error Allows certain stale reuse when an error occurs, subject to applicable controls

These controls cannot be ignored merely because stale data may be convenient for the research workflow.

In particular, no-cache does not mean the same thing as no-store.

Stale reuse must satisfy the applicable HTTP caching specification, provider contract, access controls, and research policy.

7. Use conditional provider requests appropriately

RFC 9110 describes conditional HTTP requests, including validators such as ETag and Last-Modified.

When supported, an application may send:

GET /dataset/017 HTTP/1.1
Host: provider.example.org
If-None-Match: "revision-017"

The provider may respond:

HTTP/1.1 304 Not Modified
ETag: "revision-017"

A valid 304 response indicates that the condition was satisfied according to HTTP semantics. The client can reuse the matching stored representation under applicable caching rules.

However:

  • A 304 does not supply new scientific observations.
  • The original retrieval timestamp should not be overwritten.
  • A separate successful-validation timestamp can be recorded.
  • Relevant response metadata must be updated according to HTTP caching rules.
  • The stored representation must be identified correctly, including relevant cache-key and Vary behavior.
  • The application must not apply a validator from another resource, representation, tenant, or incompatible authorization context.

Do not treat an ETag as a scientific dataset version, cryptographic checksum, or proof of source integrity unless the provider explicitly establishes those semantics.

8. Prevent unauthorized cache reuse

Caching becomes a security risk when results have different access restrictions.

Examples include:

  • Institutional subscription records.
  • Private research datasets.
  • Project-specific provider access.
  • Embargoed content.
  • Restricted or licensed full-text resources.
  • Personal or confidential research information.

A cached response belonging to one organization must not be returned to another organization merely because both requests contain the same search query.

Production cache design must enforce the actual authorization model, including any private/shared cache distinctions, HTTP authorization rules, source rights, tenant ownership, and project-level permissions.

Never use a query string alone as the complete cache key for permission-dependent research results.

9. Define an appropriate cache identity

A governed cache entry may need to distinguish:

  • Provider identifier.
  • Provider request or normalized query.
  • Authorized tenant or security partition.
  • Project scope where material.
  • Permitted content class.
  • Request parameters affecting representation.
  • Provider schema and response format.
  • Applicable rights revision.
  • Relevant source version.

The required key structure depends on the deployed provider and authorization contract.

Where the HTTP protocol applies, comply with standard cache-key and Vary handling rather than substituting an unrelated application-specific rule.

A change in the applicable rights or access context may require cache invalidation or a renewed authorization decision even when the underlying content has not changed.

10. Treat freshness policy as research-dependent

A universal cache lifetime is unsuitable for all scientific resources.

Table 4. Illustrative research use cases
Use case Freshness priority Scientific requirement
Operational monitoring Recent observations and clearly bounded latency Assess observation delay and missed updates
Historical environmental analysis Stable and reproducible input revision Preserve exact source and historical period
Scholarly source discovery Current catalog status where needed Preserve publication and version identifiers
Longitudinal modeling Consistent coverage and comparable versions Detect retrospective revisions and missing observations
Geospatial imagery analysis Correct acquisition dates and processing versions Distinguish sensing date, product publication, and local retrieval
Reproducible publications Exact archived research inputs Retain verified snapshot references

Choose cache durations and observation-age thresholds based on documented research requirements and provider restrictions.

Do not interpret a cache policy such as a 30-minute lifetime as evidence that observations are no more than 30 minutes old.

11. Preserve historical research snapshots

Scientific reproducibility often requires preserving the exact information used in an earlier analysis.

For a permitted archival record, retain:

  • Authoritative provider and source identifiers.
  • Dataset or publication revision.
  • Original retrieval timestamp.
  • Observation period or timestamps.
  • Archive creation timestamp.
  • Provider schema or representation version.
  • Content digest where appropriate.
  • Applicable rights and retention conditions.
  • Processing or normalization method version.
  • Relationship to subsequent revisions.

Do not overwrite an accepted archived snapshot merely because the provider publishes newer data.

Archiving is a distinct storage activity. HTTP cache permissions do not automatically establish the right to preserve content indefinitely in a scientific repository.

The applicable provider rights, institutional retention policy, and research governance must allow the preservation.

12. Worked example: observation time versus retrieval time

Consider a synthetic environmental dataset with the following dates.

Table 5. Synthetic freshness example
Field Example value
Source identifier dataset-017
Observation time November 14, 2026, 12:00 UTC
Retrieval time November 15, 2026, 11:45 UTC
Evaluation time November 15, 2026, 12:00 UTC
Local cache expiration November 15, 2026, 12:15 UTC
Source revision v1
Rights revision rights-v1

Under the synthetic local policy, the cached representation remains within its assigned freshness lifetime.

However, its scientific observation is approximately one day old. Whether that is acceptable depends on the research question.

If the project requires observations from the preceding hour, the representation is scientifically too old despite being a locally fresh cache entry.

13. Implement a synthetic freshness assessment

The reference example evaluates:

  • UTC timestamp validity.
  • Tenant isolation.
  • Rights revision compatibility.
  • Archived versus current-use requirements.
  • Missing observation timestamps.
  • Future-dated observations.
  • Maximum scientific observation age.
  • Cache expiration.

It models a simplified application-level decision. It does not implement the HTTP caching algorithm defined by RFC 9111.

14. Prepare the Python environment

mkdir freshness-cache-validation
cd freshness-cache-validation

python3 -m venv .venv
source .venv/bin/activate

python --version

Create:

freshness_demo.py
test_freshness_demo.py

The code uses the standard library and performs no provider or database requests.

15. Implement the reference freshness validator

Save as freshness_demo.py.

from dataclasses import dataclass
from datetime import datetime, timezone, timedelta


class ValidationError(Exception):
    pass


@dataclass(frozen=True)
class Snapshot:
    source_id: str
    version: str
    observation_at: datetime | None
    retrieved_at: datetime
    validated_at: datetime | None
    expires_at: datetime
    tenant: str
    rights_revision: str
    etag: str | None = None
    archived: bool = False


def require_utc(ts):
    if ts is not None and (
        ts.tzinfo is None
        or ts.utcoffset() != timedelta(0)
    ):
        raise ValidationError(
            "NON_UTC_TIMESTAMP"
        )


def assess(
    item,
    *,
    now,
    tenant,
    required_rights_revision,
    max_observation_age=None,
    require_current=False
):
    for ts in (
        now,
        item.observation_at,
        item.retrieved_at,
        item.validated_at,
        item.expires_at
    ):
        require_utc(ts)

    if item.tenant != tenant:
        return {
            "decision": "DENY",
            "reason": "TENANT_MISMATCH"
        }

    if item.rights_revision != required_rights_revision:
        return {
            "decision": "HOLD",
            "reason": "RIGHTS_REVIEW_REQUIRED"
        }

    if item.archived and require_current:
        return {
            "decision": "HOLD",
            "reason": "ARCHIVED_NOT_CURRENT"
        }

    if item.observation_at is None:
        return {
            "decision": "HOLD",
            "reason": "OBSERVATION_TIME_UNKNOWN"
        }

    if item.observation_at > now:
        return {
            "decision": "HOLD",
            "reason": "FUTURE_OBSERVATION_TIME"
        }

    if item.retrieved_at > now:
        return {
            "decision": "HOLD",
            "reason": "FUTURE_RETRIEVAL_TIME"
        }

    if (
        max_observation_age is not None
        and now - item.observation_at > max_observation_age
    ):
        return {
            "decision": "HOLD",
            "reason": "OBSERVATION_TOO_OLD"
        }

    if item.archived:
        return {
            "decision": "USE_ARCHIVE",
            "reason": "HISTORICAL_SNAPSHOT"
        }

    if item.expires_at <= now:
        return {
            "decision": "REVALIDATE",
            "reason": "CACHE_EXPIRED"
        }

    return {
        "decision": "USE_CACHE",
        "reason": "FRESH_BY_LOCAL_POLICY"
    }


NOW = datetime(
    2026, 11, 15, 12,
    tzinfo=timezone.utc
)

ITEM = Snapshot(
    source_id="dataset-017",
    version="v1",
    observation_at=NOW - timedelta(days=1),
    retrieved_at=NOW - timedelta(minutes=15),
    validated_at=None,
    expires_at=NOW + timedelta(minutes=15),
    tenant="tenant-A",
    rights_revision="rights-v1",
    etag='"abc"'
)


if __name__ == "__main__":
    print(
        assess(
            ITEM,
            now=NOW,
            tenant="tenant-A",
            required_rights_revision="rights-v1"
        )
    )

This validator defines a synthetic application policy that distinguishes scientific observation age from local cache expiration.

It is not an HTTP cache implementation. In particular, it does not evaluate Cache-Control, Age, Date, Vary, authorization response handling, or RFC 9111 freshness calculations.

The synthetic decision USE_CACHE means that the local example’s conditions passed. It does not override provider restrictions or authorize production reuse.

16. Execute the reference example

python freshness_demo.py

Expected result:

{
    'decision': 'USE_CACHE',
    'reason': 'FRESH_BY_LOCAL_POLICY'
}

Now consider a stricter research requirement:

from datetime import timedelta
from freshness_demo import NOW, ITEM, assess

print(
    assess(
        ITEM,
        now=NOW,
        tenant="tenant-A",
        required_rights_revision="rights-v1",
        max_observation_age=timedelta(hours=1)
    )
)

The resulting reason is:

OBSERVATION_TOO_OLD

This demonstrates why cache freshness and scientific observation freshness must be evaluated independently.

17. Implement negative and regression tests

Save as test_freshness_demo.py.

import unittest
from dataclasses import replace
from datetime import timedelta

from freshness_demo import (
    NOW,
    ITEM,
    assess,
    ValidationError
)


class TestFreshness(unittest.TestCase):

    def check(self, expected, item=ITEM, **kw):
        self.assertEqual(
            assess(
                item,
                now=NOW,
                tenant="tenant-A",
                required_rights_revision="rights-v1",
                **kw
            )["reason"],
            expected
        )

    def test_fresh(self):
        self.check("FRESH_BY_LOCAL_POLICY")

    def test_expired(self):
        self.check(
            "CACHE_EXPIRED",
            replace(ITEM, expires_at=NOW)
        )

    def test_wrong_tenant(self):
        self.assertEqual(
            assess(
                ITEM,
                now=NOW,
                tenant="tenant-B",
                required_rights_revision="rights-v1"
            )["decision"],
            "DENY"
        )

    def test_rights_change(self):
        self.check(
            "RIGHTS_REVIEW_REQUIRED",
            replace(
                ITEM,
                rights_revision="rights-v0"
            )
        )

    def test_missing_observation(self):
        self.check(
            "OBSERVATION_TIME_UNKNOWN",
            replace(ITEM, observation_at=None)
        )

    def test_future_observation(self):
        self.check(
            "FUTURE_OBSERVATION_TIME",
            replace(
                ITEM,
                observation_at=NOW + timedelta(days=1)
            )
        )

    def test_old_observation(self):
        self.check(
            "OBSERVATION_TOO_OLD",
            max_observation_age=timedelta(hours=1)
        )

    def test_archived_history(self):
        self.check(
            "HISTORICAL_SNAPSHOT",
            replace(ITEM, archived=True)
        )

    def test_archived_current(self):
        self.check(
            "ARCHIVED_NOT_CURRENT",
            replace(ITEM, archived=True),
            require_current=True
        )

    def test_future_retrieval(self):
        self.check(
            "FUTURE_RETRIEVAL_TIME",
            replace(
                ITEM,
                retrieved_at=NOW + timedelta(minutes=1)
            )
        )

    def test_expiry_boundary(self):
        self.check(
            "CACHE_EXPIRED",
            replace(ITEM, expires_at=NOW)
        )

    def test_non_utc(self):
        with self.assertRaises(ValidationError):
            self.check(
                "anything",
                replace(
                    ITEM,
                    retrieved_at=NOW.replace(tzinfo=None)
                )
            )

    def test_expiry_not_observation(self):
        self.check(
            "FRESH_BY_LOCAL_POLICY",
            replace(
                ITEM,
                observation_at=NOW - timedelta(days=365)
            )
        )


if __name__ == "__main__":
    unittest.main()

18. Run and interpret the regression suite

python -m unittest -v test_freshness_demo.py

Local reference execution result: Thirteen of thirteen synthetic tests passed.

Ran 13 tests

OK

The tests cover:

  • Local cache freshness.
  • Expired cache entries.
  • Cache expiration at the exact boundary.
  • Cross-tenant denial.
  • Changed rights revisions.
  • Missing observation timestamps.
  • Future-dated observations.
  • Future-dated retrievals.
  • Scientific observation-age limits.
  • Archived historical use.
  • Archived content rejected for current-use requirements.
  • Invalid timezone handling.
  • Separation of cache freshness from scientific observation age.

These tests do not verify provider HTTP caching semantics, actual credentials, source rights, persisted archives, concurrent requests, or deployed applications.

19. Validate stale-response behavior against provider rules

A production implementation must not use a locally simplified expiration field as a replacement for the applicable HTTP rules.

Verify:

  • Correct handling of Cache-Control and Expires.
  • Correct calculation of response age and freshness under RFC 9111.
  • Proper Vary behavior.
  • Appropriate treatment of authenticated responses.
  • Compliance with no-store and mandatory revalidation directives.
  • Correct handling of ETag and Last-Modified validators.
  • Valid reuse of stored representations after a 304 response.
  • Protection against cross-tenant or cross-project cache reuse.
  • Permitted stale behavior during outages.
  • Appropriate logging and recovery of failed revalidation attempts.

Where stale reuse is prohibited, a provider outage does not authorize silently returning a stale response as current.

Where stale use is permitted by all applicable controls, disclose it clearly and assess whether its scientific observation age remains acceptable.

20. Define visible freshness information

A useful discovery interface should make the source state understandable without requiring researchers to inspect HTTP headers or backend logs.

Illustrative metadata:

Dataset: Environmental Observation Series

Source version: v1

Observation time:
November 14, 2026, 12:00 UTC

Retrieved:
November 15, 2026, 11:45 UTC

Cache state:
Fresh under local policy

Provider revalidation:
Not performed

Rights revision:
rights-v1

Scientific suitability:
Not independently assessed

When observation time is unknown, display that status explicitly.

For a revalidated representation, preserve the earlier retrieval time and display the newer validation time separately.

For archived research, display a clear archived or historical classification, including the relevant source revision.

21. Preserve provenance during refresh and revalidation

A refresh operation should not silently alter the evidence used in an accepted research output.

Preserve relevant relationships between:

  • The authoritative provider source.
  • The original retrieved representation.
  • The cached or revalidated state.
  • Any new representation received.
  • The archived research snapshot.
  • Analyses derived from each version.
  • The governing rights decision.

W3C PROV-O provides a framework for documenting entities, activities, and agents associated with data processing.

Where a source changes, create or retain appropriate version references rather than overwriting the provenance of an earlier scientific analysis.

A successful revalidation should not be represented as a new scientific observation or an independent scientific review.

22. Handle provider outages safely

When a provider cannot be reached, distinguish a network or service failure from the absence of scientific data.

Possible states include:

Table 6. Provider failure and recovery states
State Required behavior
Provider unavailable Report the failure and preserve sanitized diagnostics
Cache still fresh Reuse only where authorized and scientifically appropriate
Cache stale but reuse permitted Disclose stale status and evaluate observation age
Cache stale and reuse prohibited Do not serve as an authorized current response
Historical snapshot available Offer historical reference only under applicable rights and use requirements
No acceptable representation Return a classified unavailable result without inventing data

Retries must be bounded and respect provider rate limits, timeouts, and failure responses.

Do not retry state-changing operations blindly when their original outcome is unknown.

23. Create a machine-readable freshness receipt

An illustrative evidence record is:

{
  "schema_version": "example-1.0",
  "workflow": "discovery_freshness_assessment",
  "classification": "synthetic",
  "resource": {
    "provider_id": "fixture-provider",
    "source_id": "dataset-017",
    "revision": "v1"
  },
  "timestamps": {
    "observation_at": "2026-11-14T12:00:00Z",
    "retrieved_at": "2026-11-15T11:45:00Z",
    "evaluated_at": "2026-11-15T12:00:00Z",
    "validated_at": null
  },
  "cache": {
    "classification": "synthetic_local_cache",
    "decision": "USE_CACHE",
    "http_compliance": "not_tested",
    "archived": false
  },
  "rights": {
    "revision": "rights-v1",
    "real_authorization": "not_tested"
  },
  "acceptance": {
    "provider_identity": "not_tested",
    "source_revision": "not_tested",
    "observation_time": "not_tested",
    "retrieval_timestamp": "not_tested",
    "http_cache_semantics": "not_tested",
    "conditional_revalidation": "not_tested",
    "tenant_isolation": "not_tested",
    "rights_enforcement": "not_tested",
    "archive_integrity": "not_tested",
    "scientific_suitability": "not_tested",
    "library_persistence": "not_tested",
    "production_runtime": "not_tested"
  },
  "production_release_decision": "NO_GO"
}

This is a proposed acceptance record, not a verified Unified Discovery database or API response.

For actual operations, use authoritative source IDs, real timestamps, implementation revisions, permitted provider metadata, and executed evidence.

24. Technical and scientific acceptance matrix

Table 7. Freshness and cache-handling acceptance
Criterion Pass condition Evidence
Source identity Provider and resource version correctly resolved Provider reconciliation
Observation time Actual observation timestamp or explicit unknown state visible Source metadata and interface inspection
Retrieval time Actual request-completion or receipt timestamp preserved Request and persistence evidence
Validation time Revalidation recorded separately from retrieval Conditional request evidence
HTTP cache compliance Applicable RFC 9111 behavior implemented Protocol integration tests
Cache identity Correct representation and authorization scope selected Key and Vary tests
Rights enforcement Restrictions remain effective after caching Rights and authorization tests
Tenant isolation No cross-owner cached content disclosure Authenticated negative tests
Observation suitability Observation age appropriate for research purpose Research-specific review
Stale behavior Only permitted stale reuse, with disclosure Provider outage tests
Archived snapshots Versioned history preserved without false current-state claims Archive and replay evidence
Source revisions New revisions do not silently replace accepted inputs Version reconciliation
Persistence Timestamp and source relationships survive reload Saved-state tests
Scientific provenance Origin, timing, and transformations traceable Provenance record
Publication boundary Historical and current states represented accurately Scientific and editorial review
Production acceptance Actual deployed implementation independently tested API, CI, and browser evidence

Acceptance rule: Record each applicable criterion as Pass, Fail, Not Tested, or Not Applicable. Required failed or untested security, rights, or data-integrity controls prevent production acceptance of the affected capability.

25. Sustainable Catalyst cross-application responsibilities

Table 8. Proposed platform responsibilities
Application Intended responsibility
Unified Discovery Distinguish provider results, cached records, revalidation, and archived snapshots
Library Preserve authoritative source IDs, revisions, rights, and permitted archival artifacts
Research Lab Evaluate observation-age suitability and scientific data limitations
Workbench Use versioned research inputs without silently replacing historical data
Site Intelligence Distinguish imagery acquisition time, product update time, and retrieval time
Decision Studio Record source freshness assumptions in models and decisions
Workspace Manage project-specific freshness requirements, acceptance, and review
Research Publish source timing, revisions, and relevant limitations accurately
Platform Core Enforce trusted identity, cache isolation, provider permissions, and governance

These responsibilities describe the intended architecture and are not confirmation of deployed integrations.

26. Common mistakes and safe recovery

Common errors include:

  • Using the retrieval timestamp as the observation date.
  • Claiming that a 304 response contains newly observed scientific data.
  • Assuming all provider responses can be cached.
  • Ignoring no-store or mandatory revalidation requirements.
  • Serving a stale cache entry as a current provider result.
  • Sharing tenant-specific cached content across authorization boundaries.
  • Replacing archived data with a new provider version without preserving history.
  • Treating an ETag as a scientific content checksum.
  • Assuming recently published data contain recent observations.
  • Discarding source and rights revisions during cache invalidation.
  • Erasing useful research history during indiscriminate cache clearing.

When a freshness defect is found, preserve the last accepted source and snapshot references. Identify whether the failure concerns HTTP caching, provider metadata, time interpretation, rights, authorization, or persistence.

Apply only documented, authorized corrections. Rerun scientific and technical acceptance after recovery.

Do not expose credentials, private datasets, or protected provider configuration in public diagnostics.

27. Required implementation and runtime audit

Before this procedure is described as production verified, inspect:

  • Actual Unified Discovery repositories and source commits.
  • Provider connectors and HTTP client configuration.
  • Cache-control, conditional request, and revalidation implementation.
  • Correct handling of response age and cache freshness.
  • ETag, Last-Modified, and Vary handling.
  • Authenticated and shared-cache security boundaries.
  • Tenant, project, and provider authorization.
  • Source observation, publication, modification, and retrieval timestamps.
  • Provider and dataset version handling.
  • Rights-aware caching and archival policies.
  • Archive identity, integrity, retention, and replay.
  • Stale-response behavior during provider failures.
  • Persistence and migration of metadata timestamps.
  • Cross-application source and provenance relationships.
  • Executed positive, negative, and integration tests.
  • CI evidence tied to the exact implementation revision.
  • Authenticated staging and browser acceptance.
  • Recovery and rollback or reconciliation evidence.
  • Scientific and publication review requirements.

Attach actual implementation anchors, source paths, deployed build identifiers, executed test results, and reviewer decisions before certifying the deployed capability.

28. Technical and scientific references

  1. Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Semantics. RFC 9110. Available at: https://www.rfc-editor.org/rfc/rfc9110.html.
  2. Fielding, R., Nottingham, M. and Reschke, J. (2022). HTTP Caching. RFC 9111. Available at: https://www.rfc-editor.org/rfc/rfc9111.html.
  3. Nottingham, M. (2010). HTTP Cache-Control Extensions for Stale Content. RFC 5861. Available at: https://www.rfc-editor.org/rfc/rfc5861.html.
  4. World Wide Web Consortium (W3C) (2024). Data Catalog Vocabulary (DCAT) — Version 3. Available at: https://www.w3.org/TR/vocab-dcat-3/.
  5. World Wide Web Consortium (W3C) (2013). PROV-O: The PROV Ontology. Available at: https://www.w3.org/TR/prov-o/.
  6. Wilkinson, M.D. et al. (2016). ‘The FAIR Guiding Principles for scientific data management and stewardship’, Scientific Data, 3, 160018. Available at: https://doi.org/10.1038/sdata.2016.18.
  7. Python Software Foundation. datetime — Basic Date and Time Types. Available at: Python datetime documentation.
  8. Python Software Foundation. unittest — Unit Testing Framework. Available at: Python unittest documentation.

29. Completion and verification record

Table 9. Freshness and cache-handling completion requirements
Field Required record
Research context Project, owner, research question, and required data state
Source identity Authoritative provider, source ID, and revision
Observation time Source observation instant or period, or explicit unknown
Publication and modification time Provider-supplied values where available
Retrieval timestamp Actual retrieval event time
Validation timestamp Successful revalidation time, where applicable
Cache status Provider, fresh, revalidated, stale, archived, or unknown
HTTP cache compliance Actual protocol behavior and evidence
Cache identity Authorized representation and security partition
Rights revision Applicable permission and retention context
Observation suitability Research-specific scientific assessment
Archive identity Immutable or versioned source and snapshot reference
Provenance Source, request, validation, and processing history
Provider failures Recorded partial or unavailable states
Security acceptance Tenant, project, and credential-isolation evidence
Persistence Timestamp and source relationships retained on reload
Implementation identity Repository, commit, API contract, and deployed build
Runtime acceptance Executed API and browser evidence
Scientific reviewer Responsible reviewer and decision date
Outstanding limitations Unresolved timing, provenance, security, or scientific concerns

Completion criterion: Freshness and cache handling are accepted when users can distinguish the authoritative observation time from retrieval, revalidation, publication, and archive timestamps; source and rights revisions remain traceable; cache reuse complies with applicable technical and authorization requirements; archived evidence can be reproduced without silently changing historical inputs; and scientific suitability is evaluated against the intended research purpose.

Scientific limitation: A fresh cache entry, current provider response, or successful conditional revalidation does not prove that observations are recent, measurements are accurate, or the dataset is scientifically appropriate. Historical snapshots may remain valid research evidence when their origin, version, timing, and limitations are properly documented.

Current implementation status: Freshness and cache-handling methodology, distinct timestamp definitions, HTTP caching and conditional-request guidance, scientific observation-age assessment, rights and tenant isolation requirements, archival provenance, synthetic Python validator, thirteen locally executed reference tests, and proposed acceptance criteria documented. No specific Sustainable Catalyst Unified Discovery cache implementation, provider revalidation mechanism, archive service, Library handoff, or production freshness interface is certified without code audit, actual HTTP and security integration tests, authenticated runtime evidence, and independent scientific acceptance.

Scroll to Top