mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Setting Cache-Control: for three types of content
At this point the ETag value for ZIM content is still generated from the timestamp of the server start-up time.
This commit is contained in:
@ -35,7 +35,7 @@ struct Resource
|
||||
ResourceKind kind;
|
||||
const char* url;
|
||||
|
||||
bool etag_expected() const { return kind != DYNAMIC_CONTENT; }
|
||||
bool etag_expected() const { return kind != STATIC_CONTENT; }
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const Resource& r)
|
||||
@ -47,7 +47,7 @@ std::ostream& operator<<(std::ostream& out, const Resource& r)
|
||||
typedef std::vector<Resource> ResourceCollection;
|
||||
|
||||
const ResourceCollection resources200Compressible{
|
||||
{ STATIC_CONTENT, "/ROOT/" },
|
||||
{ DYNAMIC_CONTENT, "/ROOT/" },
|
||||
|
||||
{ STATIC_CONTENT, "/ROOT/skin/autoComplete.min.js" },
|
||||
{ STATIC_CONTENT, "/ROOT/skin/css/autoComplete.css" },
|
||||
|
Reference in New Issue
Block a user