# Allow If-Modified-Since Requests

This health check ensures optimal header configuration for efficient caching and improved client-side performance by validating the presence of the `If-Modified-Since` and `Last-Modified` headers.

**Health Check Name: `allow_if_modified_since`**

#### **Accessed APIs**

| Method | Endpoint                  | Description                                    |
| ------ | ------------------------- | ---------------------------------------------- |
| READ   | `/sys/internal/ui/mounts` | Reads mount configuration for secrets engines. |

#### **Configuration Parameters**

| Parameter | Default | Description                 |
| --------- | ------- | --------------------------- |
| None      | N/A     | No configurable parameters. |

#### **Health Check Results**

| Condition                                                         | Status             |
| ----------------------------------------------------------------- | ------------------ |
| Both headers (`If-Modified-Since` and `Last-Modified`) configured | OK / Informational |
| Only one header configured                                        | Warning            |
| Neither header configured                                         | Informational      |

This check validates if:

* `If-Modified-Since` is included in `passthrough_request_headers`
* `Last-Modified` is included in `allowed_response_headers`

#### **Recommended Actions**

To resolve warnings or improve configuration, update your secrets engine mount settings using the following:

{% hint style="info" %}
**Note:** Replace `<mount>` with your actual secrets engine mount path.
{% endhint %}

**Standard Configuration**

```bash
vhsm secrets tune \
  -passthrough-request-headers="If-Modified-Since" \
  -allowed-response-headers="Last-Modified" \
  <mount>
```

**ACME-Specific Configuration&#x20;*****(If you're using ACME)***

```bash
vhsm secrets tune \
  -passthrough-request-headers="If-Modified-Since" \
  -allowed-response-headers="Last-Modified" \
  -allowed-response-headers="Replay-Nonce" \
  -allowed-response-headers="Link" \
  -allowed-response-headers="Location" \
  <mount>
```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.enclaive.cloud/virtual-hsm/troubleshooting/allow-if-modified-since-requests.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
