[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:
Olivier Lamy 2012-07-20 21:37:22 +00:00
parent a7f6a8efe9
commit e5a923bc4e
1 changed files with 3 additions and 3 deletions

View File

@ -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();