Added freshness changes and removed the background.
Change-Id: I4c2d48c7f14ed79b3d6c9faa7652c002f9c70d9f
diff --git a/client/catalog/css/style.css b/client/catalog/css/style.css
index fa00570..d784b53 100644
--- a/client/catalog/css/style.css
+++ b/client/catalog/css/style.css
@@ -3,7 +3,7 @@
height: 100%;
margin: 0;
min-width: 650px;
- background-image: url(../background.jpg);
+ /* background-image: url(../background.jpg); */
background-size: cover;
background-attachment: fixed;
}
diff --git a/client/catalog/js/catalog.js b/client/catalog/js/catalog.js
index 1627c28..682c504 100644
--- a/client/catalog/js/catalog.js
+++ b/client/catalog/js/catalog.js
@@ -224,7 +224,11 @@
var name = new Name(scope.catalog).append('query-results').append(JSON.stringify({"?": field})).append(ack.get(-3)).append(ack.get(-2));
- scope.face.expressInterest(new Interest(name).setInterestLifetimeMilliseconds(5000),
+ var interest = new Interest(name);
+ interest.setInterestLifetimeMilliseconds(5000);
+ interest.setMustBeFresh(true);
+
+ scope.face.expressInterest(interest,
function(interest, data){
if (data.getContent().length !== 0){
@@ -295,7 +299,11 @@
var scope = this;
- this.face.expressInterest(new Interest(first).setInterestLifetimeMilliseconds(5000),
+ var interest = new Interest(first)
+ interest.setInterestLifetimeMilliseconds(5000);
+ interest.setMustBeFresh(true);
+
+ this.face.expressInterest(interest,
function(interest, data){ //Response
if (data.getContent().length === 0){
@@ -343,6 +351,7 @@
var queryInterest = new Interest(queryPrefix);
queryInterest.setInterestLifetimeMilliseconds(4000);
+ queryInterest.setMustBeFresh(true);
this.face.expressInterest(queryInterest, callback, timeout);