Hi Kumar!
To be clear existence of "Cache-Control: public" header with max-age > 0 means, the resource is considered as static. Am I right?
> That is correct.
What if no max-age directive is included?
> If no max-age is included, Imperva calculates max-age as follows:
Max-age= Expires - date
Also, what happens if no Cache-Control header is set in the response?
> This resources will then be analyzed by Imperva dynamic profile. The algorithm works as follow:
Some resources are cached although they don't have headers that consider them as cacheable. A resource is cacheable if:
- It is requested by five different IPs within a one-hour window.
- The same resource was identified in each case (based on a cache key). Smart caching learns how many times the resource was changed due to request structure, rules, or header configuration.
The decision to cache addition resources is made independently by each Imperva proxy.
As for the caching duration for these resources,
Imperva uses the Last-Modified response header in the resource to calculate max-age.
Hope this helps!
------------------------------
Tit King Tan
Imperva Employee
------------------------------
Original Message:
Sent: 06-13-2023 20:14
From: Kumar Krishnamoorthy
Subject: Smart caching mode - non static content
Hi Jaired,
To be clear existence of "Cache-Control: public" header with max-age > 0 means, the resource is considered as static. Am I right?
What if no max-age directive is included?
Also, what happens if no Cache-Control header is set in the response?
I am trying to work out what's the appropriate cache directives/headers to use for dynamic pages in our application.
------------------------------
Kumar Krishnamoorthy
Product Architect
OpenCities Pty Ltd
Melbourne VIC
Original Message:
Sent: 06-13-2023 09:53
From: Jaired Anderson
Subject: Smart caching mode - non static content
Hi Kumar,
Cache-Control headers determine if an object is static or dynamic based on the directive. (cache / no cache)
For more information, please see the following topic:
------------------------------
Jaired Anderson
Imperva
Original Message:
Sent: 06-13-2023 01:57
From: Kumar Krishnamoorthy
Subject: Smart caching mode - non static content

What exactly does "static content that was not marked as static" mean? How does Imperva determine a content as something marked as static?
#ContentDeliveryNetwork
------------------------------
Kumar Krishnamoorthy
Product Architect
OpenCities Pty Ltd
Melbourne VIC
------------------------------