mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Improve caching, HTTP headers and URL handling (#3594)
* Fix relative URLs * Improve login base URL and redirects * Prevent duplicate customlocales requests * Improve UI base URL handling * Improve UI embedding * Improve CSP header * Add Cache-Control headers to all responses * Improve CORS responses * Improve authentication handler * Add back media timestamp suffixes * Fix default image handling * Add default param to other image URLs
This commit is contained in:
@@ -363,6 +363,10 @@ func (qb *movieQueryBuilder) GetFrontImage(ctx context.Context, movieID int) ([]
|
||||
return qb.GetImage(ctx, movieID, movieFrontImageBlobColumn)
|
||||
}
|
||||
|
||||
func (qb *movieQueryBuilder) HasFrontImage(ctx context.Context, movieID int) (bool, error) {
|
||||
return qb.HasImage(ctx, movieID, movieFrontImageBlobColumn)
|
||||
}
|
||||
|
||||
func (qb *movieQueryBuilder) GetBackImage(ctx context.Context, movieID int) ([]byte, error) {
|
||||
return qb.GetImage(ctx, movieID, movieBackImageBlobColumn)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user