From 1cc891be35c50ad3fd1fcc3498a08f7f46462d35 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 14 Oct 2018 00:35:43 +0200 Subject: 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 --- app/FreshRSS.php | 1 - 1 file changed, 1 deletion(-) (limited to 'app/FreshRSS.php') 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)); } } -- cgit v1.2.3