Skip to content
Snippets Groups Projects

feat: Create response filter that adds cache-control headers

2 unresolved threads
Files
5
 
/*********************************************************************
 
* Copyright (c) 2023 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/
 
*
 
* Author: Zachary Sabourin <zachary.sabourin@eclipse-foundation.org>
 
*
 
* SPDX-License-Identifier: EPL-2.0
 
**********************************************************************/
 
package org.eclipsefoundation.core.config;
 
 
import java.util.List;
 
 
import io.smallrye.config.ConfigMapping;
 
import io.smallrye.config.WithDefault;
 
 
@ConfigMapping(prefix = "eclipse.core.cache-control")
 
public interface CacheControlConfig {
 
 
@WithDefault("false")
 
boolean enabled();
 
 
@WithDefault(".*")
 
List<String> paths();
 
}
Loading