Skip to content
Permalink
Browse files

fix: missing digest / etag header for a site’s main action

  • Loading branch information
p3k committed Mar 7, 2020
1 parent 8930a73 commit 6986a8507ec9dbbcc050eca287d3b9d0c8f4eda5
Showing with 4 additions and 0 deletions.
  1. +4 −0 code/Site/Site.js
@@ -305,6 +305,9 @@ Site.prototype.getPermission = function(action) {
}

Site.prototype.main_action = function() {
res.dependsOn(this.modified);
res.digest();

this.renderPage({
type: 'website',
schema: 'http://schema.org/WebSite',
@@ -314,6 +317,7 @@ Site.prototype.main_action = function() {
images: [(this.layout.images.get('favicon') || Images.Default['favicon.png']).getUrl()],
links: this.renderSkinAsString('$Site#links')
});

this.log();
return;
};

0 comments on commit 6986a85

Please sign in to comment.
You can’t perform that action at this time.