mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 06:55:56 +03:00
[PR #20] [MERGED] PHP overriding caching #133
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HaschekSolutions/pictshare/pull/20
Author: @gabe565
Created: 11/3/2016
Status: ✅ Merged
Merged: 11/3/2016
Merged by: @geek-at
Base:
master← Head:master📝 Commits (2)
a509438Tell PHP to cache for 90 days before sessionf070735Add cache changes to backend.php also📊 Changes
2 files changed (+6 additions, -0 deletions)
View changed files
📝
backend.php(+3 -0)📝
index.php(+3 -0)📄 Description
I noticed that images uploaded to PictShare were never being cached by any browser.
I looked through the code, and saw in inc/core.php, it is attempting to set the cache Expires header for images and videos to 90 days, but most PHP configs will override this and completely disable caching (Even if Pragma and Cache-Control are unset).
This happened on my personal server and on the public site.
If I changed this setting on a global level, it broke other PHP pages, but setting PHP's cache_limiter to public does not seem to do any harm to PictShare, and images are cached now!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.