summaryrefslogtreecommitdiff
path: root/src/web/_views
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/_views')
-rw-r--r--src/web/_views/bucket/main.php5
-rw-r--r--src/web/_views/head.php2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/web/_views/bucket/main.php b/src/web/_views/bucket/main.php
index b85c773..2842afc 100644
--- a/src/web/_views/bucket/main.php
+++ b/src/web/_views/bucket/main.php
@@ -1,6 +1,5 @@
<?php /* Copyright (c) 2024 Freya Murphy */ ?>
<?php
- $root='https://webring.bucketfish.me/redirect.html?to=%s&name=' . $name;
$this->view('head', $data);
if ($lightmode === 'true') {
echo embed_css_ext('css/bucket_light.css');
@@ -34,8 +33,8 @@
🏳️‍🌈
</span>
</center>
- <span class="left">⥼ <a href="<?=sprintf($root, 'prev')?>" class="prev">prev</a></span>
- <span class="right"><a href="<?=sprintf($root, 'next')?>" class="next">next</a> ⥽</span>
+ <span class="left">⥼ <a href="<?=$before?>" class="prev">prev</a></span>
+ <span class="right"><a href="<?=$after?>" class="next">next</a> ⥽</span>
</div>
</body>
</html>
diff --git a/src/web/_views/head.php b/src/web/_views/head.php
index 4d16a1b..281ebc5 100644
--- a/src/web/_views/head.php
+++ b/src/web/_views/head.php
@@ -7,7 +7,7 @@
if (ENVIRONMENT == 'production' && !in_array($current_app, $non_cached_apps)) {
$cache_seconds = 300;
if ($current_app == 'bucket') {
- $cache_seconds = 3600;
+ $cache_seconds = 86400;
}
header("Cache-Control: public, max-age=$cache_seconds");
header("Expires: " . gmdate('D, d M Y H:i:s', time() + $cache_seconds) . " UTC");