mirror of https://github.com/apache/archiva.git
[MRM-1644] Archiva should set cache control headers instead of adding for maven-metadata.xml
Submitted by Charles Kim. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1363959 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7f6a8efe9
commit
e5a923bc4e
|
@ -435,14 +435,14 @@ public class ArchivaDavResourceFactoryTest
|
|||
requestControl.expectAndReturn( request.getRequestURI(),
|
||||
"http://localhost:8080/archiva/repository/" + INTERNAL_REPO
|
||||
+ "/eclipse/jdtcore/maven-metadata.xml" );
|
||||
response.addHeader( "Pragma", "no-cache" );
|
||||
response.setHeader( "Pragma", "no-cache" );
|
||||
responseControl.setVoidCallable();
|
||||
|
||||
response.addHeader( "Cache-Control", "no-cache" );
|
||||
response.setHeader( "Cache-Control", "no-cache" );
|
||||
responseControl.setVoidCallable();
|
||||
|
||||
long date = 2039842134;
|
||||
response.addDateHeader( "last-modified", date );
|
||||
response.setDateHeader( "last-modified", date );
|
||||
responseControl.setVoidCallable();
|
||||
|
||||
archivaConfigurationControl.replay();
|
||||
|
|
Loading…
Reference in New Issue