- fix: crash bug in if modified cache checking
- The default database setup no longer uses the popular "news" url.
This commit is contained in:
parent
9c4a9edb3c
commit
bb55071535
3 changed files with 5 additions and 3 deletions
|
|
@ -192,7 +192,7 @@ sub contentHandler {
|
|||
my $asset = getAsset($session, getRequestedAssetUrl($session));
|
||||
|
||||
# display from cache if page hasn't been modified.
|
||||
if ($session->var->get("userId") eq "1" && !$http->ifModifiedSince($asset->getContentLastModified)) {
|
||||
if ($session->var->get("userId") eq "1" && defined $asset && !$http->ifModifiedSince($asset->getContentLastModified)) {
|
||||
$http->setStatus("304","Content Not Modified");
|
||||
$http->sendHeader;
|
||||
$session->close;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue