Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Eclipse Foundation API SDK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Foundation
IT
APIs
Eclipse Foundation API SDK
Merge requests
!239
update: add common values for HTTP cache header annotation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
update: add common values for HTTP cache header annotation
malowe/main/http-caching
into
main
Overview
0
Commits
2
Pipelines
2
Changes
4
Merged
Martin Lowe
requested to merge
malowe/main/http-caching
into
main
7 months ago
Overview
0
Commits
2
Pipelines
2
Changes
4
Expand
update: add common values for HTTP cache header annotation
Resolves
#112 (closed)
0
0
Merge request reports
Compare
main
version 1
723fe733
7 months ago
main (base)
and
latest version
latest version
c6941c8e
2 commits,
7 months ago
version 1
723fe733
1 commit,
7 months ago
4 files
+
102
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
http/src/main/java/org/eclipsefoundation/http/namespace/CacheControlCommonValues.java
0 → 100644
+
42
−
0
Options
/*********************************************************************
* Copyright (c) 2024 Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
/**
*
*/
package
org.eclipsefoundation.http.namespace
;
/**
* Common values used for Cache-Control headers in ehte Eclipse Foundation space. As annotations cannot be decomposed, this is the best we
* can do for standardized values for caching.
*
* <p>
* For "safe" caching level, use the following:
* <p>
* @Cache(maxAge=CacheControlCommonValues.SAFE_CACHE_MAX_AGE)
*
* <p>
* For "aggressive" caching level, use the following:
* <p>
* @Cache(maxAge=CacheControlCommonValues.AGGRESSIVE_CACHE_MAX_AGE)
*
* <p>
* For no HTTP level caching, use the following:
* <p>
* @Cache(noStore=true)
*
*/
public
final
class
CacheControlCommonValues
{
public
static
final
int
SAFE_CACHE_MAX_AGE
=
300
;
public
static
final
int
AGGRESSIVE_CACHE_MAX_AGE
=
600
;
private
CacheControlCommonValues
()
{
}
}
Loading