Commit Graph

64 Commits

Author SHA1 Message Date
Max Kostikov eb44201c5f Use goaway() base function 2019-04-27 21:38:54 +02:00
Max Kostikov fe84dae313 Optimize cached photos processing 2019-04-24 11:18:17 +02:00
Max Kostikov 9104933b18 Add modified date in Etag hash calculation 2019-04-24 11:13:17 +02:00
Max Kostikov db020ca1a3 Update Photo.php 2019-04-18 21:55:06 +02:00
Max Kostikov eb02d01eed Update Photo.php 2019-04-18 10:13:03 +02:00
Max Kostikov 7a9093f634 Implement ETag: header support for cache control 2019-04-18 09:50:37 +02:00
Max Kostikov 1732b2dfe3 Add 'must-revalidate' to Cache-control header for profile photos 2019-04-17 23:15:46 +02:00
Max Kostikov a62f891a60 Precise 'Modified:' header processing if no profile photo added; remove duplicated code 2019-04-17 18:30:50 +02:00
Max Kostikov c490970324 Fix file path with filesystem storage 2019-04-16 22:24:48 +02:00
Max Kostikov 8e0b9b82e9 Update Photo.php 2019-04-05 14:21:05 +02:00
Max Kostikov ea4b4ddce4 Update Photo.php 2019-04-05 14:17:39 +02:00
Max Kostikov bd95c7b82a Update Photo.php 2019-04-05 14:15:40 +02:00
Max Kostikov e20c5cf9cf Prevent return wrong profile photo modification date by plugin 2019-04-05 14:10:48 +02:00
Max Kostikov 37d7d18bb7 Faster image processing with photo cache addon 2018-12-24 09:22:58 +01:00
Max Kostikov 05cb4fd897 Move SSLify code from Photo cache addon 2018-12-17 09:13:03 +01:00
Max Kostikov 1b0a6fe9eb SSLify cached URL on redirect if needed 2018-12-17 00:58:46 +01:00
Max Kostikov e0d68664c4 Remove photo_cache_enable variable 2018-12-16 20:48:36 +01:00
Max Kostikov 1c44912aff Update Photo.php 2018-12-03 21:33:32 +01:00
Max Kostikov b586fcebab Update Photo.php 2018-12-03 21:21:23 +01:00
Max Kostikov 244c0d828a Update Photo.php 2018-12-03 13:29:27 +01:00
Max Kostikov 57ebd7e170 New logic for less dependence on cache logic 2018-12-03 13:10:55 +01:00
Max Kostikov f3831fa77f Better cache settings logic 2018-11-29 21:27:06 +01:00
Max Kostikov 6aa99a903f Code cleanup 2018-11-29 11:56:56 +01:00
Max Kostikov bd0fc8a2d7 Add photo cache hooks 2018-11-29 10:38:25 +01:00
Mario 73b836c73d Revert "Fix return on wrong sotred in Content-Length size for full size photos"
This reverts commit 6010b5c619
2018-11-19 13:11:18 +01:00
Mario af0c2f59cc Revert "Add filesize for streaming content"
This reverts commit 238a616292
2018-11-19 13:11:04 +01:00
Max Kostikov 238a616292 Add filesize for streaming content 2018-11-16 23:33:45 +01:00
Max Kostikov 6010b5c619 Fix return on wrong sotred in Content-Length size for full size photos 2018-11-16 23:14:10 +01:00
Max Kostikov cf2f7f2132 Update Photo.php 2018-11-13 12:52:35 +01:00
Max Kostikov a145559662 Remove uneccessary include/photos.php 2018-11-13 11:45:18 +01:00
Max Kostikov d029e3dc16 Text formatting in Photo.php 2018-11-13 11:39:42 +01:00
Max Kostikov 286326a98e Replace fetch_image_from_url() with z_fetch_url() 2018-11-13 11:38:49 +01:00
Max Kostikov f7b00c62a4 Remove unnecessary Zulu timezone mention 2018-11-10 10:05:28 +01:00
Max Kostikov dc59561a95 Fixed timezone conversion 2018-11-09 22:17:11 +01:00
Max Kostikov dc0335d1d5 Correct "Content-Length:" calculation added 2018-11-08 11:53:27 +01:00
Mario Vavti e0a0570cc4 $data only contains the link to the image if the image is in os storage. The size is calculatet wrong in this case and the download fails. rely on filesize from the db for content-length 2018-11-08 11:06:44 +01:00
Max Kostikov 3f6cd5a663 Disable image caching if personal or group permissions enabled 2018-11-07 19:52:38 +01:00
Max Kostikov eaf117cce1 Added If-Modified-Since header support for better image caching and fixed absent 404 for photos 2018-11-07 18:22:55 +01:00
Max Kostikov a5a77d1e7c Revert "remove 'Expiries' HTTP header"
This reverts commit 40d9277ef3
2018-11-07 08:41:32 +01:00
Max Kostikov 40d9277ef3 remove 'Expiries' HTTP header 2018-11-06 16:22:34 +01:00
Max Kostikov 3491c488d3 Update Photo.php 2018-11-06 13:51:01 +01:00
Max Kostikov 1828b6daab Update Photo.php 2018-11-06 13:41:41 +01:00
Max Kostikov c26f45b7c2 Update Photo.php 2018-11-06 13:39:36 +01:00
Max Kostikov e116b90116 'Last-Modified' and 'Content-Length' HTTP headers added for better image caching 2018-11-06 13:37:50 +01:00
Max Kostikov f7ce374a28 Update Photo.php 2018-11-05 21:26:10 +01:00
Max Kostikov 2dd124d09e Use modern get_config() syntax 2018-11-05 21:25:08 +01:00
zotlabs dae89ce91c wrong default param for pubstream_incl (this checkin also picked up a few minor and hopefully non-significant changes) 2018-05-18 16:57:45 -07:00
Mario Vavti 12c571a187 missing include 2018-05-16 10:47:18 +02:00
zotlabs aac5fd96cc provide function to fetch photo contents from url 2018-05-15 16:51:04 -07:00
Mario Vavti de63e40a70 we must now provide the full path to the profile image for the cavatar plugin to work 2018-05-15 10:20:20 +02:00