aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-10-14 00:35:43 +0200
committerGravatar GitHub <noreply@github.com> 2018-10-14 00:35:43 +0200
commit1cc891be35c50ad3fd1fcc3498a08f7f46462d35 (patch)
treecfc5c2bbed29a9e4996f19624d57b7633f7653c2 /app/FreshRSS.php
parentee902ee7c4370421802768c3105ba269a4f97b16 (diff)
Remove some preload / prefetch (#2040)
* Remove next prefetch This approach was only efficient in the specific case when no change was made (no mark-as-read, favourites, tags), and useless in the other situations. Removed to reduce server load. * Remove next prefetch from JavaScript too * Remove some preload / prefetch While useful for the first request, those preload / prefetch hints are slightly negative for the following requets, especially server-side, e.g. generating one log entry in Apache, and a bit more network traffic. * Revert mistake * Remove comment https://github.com/FreshRSS/FreshRSS/pull/2040#discussion_r223214915
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 2bd5135a9..dec446a8e 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -90,7 +90,6 @@ class FreshRSS extends Minz_FrontController {
}
$filetime = @filemtime(PUBLIC_PATH . '/themes/' . $theme_id . '/' . $filename);
$url = '/themes/' . $theme_id . '/' . $filename . '?' . $filetime;
- header('Link: <' . Minz_Url::display($url, '', 'root') . '>;rel=preload', false); //HTTP2
Minz_View::prependStyle(Minz_Url::display($url));
}
}