Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The purpose of this PR is to allow expired content on the nightly build Flink website to expire.
Currently, flink-web does not explicitly specify
ExpiresActive
in.htaccess
, and therefore content expiration is disabled by default. CDN or users' web browser might still serve outdated content even after the content has been removed.For example, this Flink ML web link still serves a page that has been deleted from the Flink ML repo even though the URL says "flink-ml-docs-master".
This PR fixes this problem by making the following changes:
ExpiresActive on
text/html
typed content to expire/refresh once every hour.image/jpg
) to expire/refresh once every day.See [1] for a discussion of similar issues and the suggestion by Apache infra team. See [2] for documentation of the HTTP directives added in this PR. See [3] for a detailed explanation of the
modification
directive.[1] https://issues.apache.org/jira/browse/INFRA-18519
[2] https://github.com/apache/echarts-website/blob/asf-site/.htaccess
[3] https://stackoverflow.com/questions/562802/cache-expire-control-with-last-modification