-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0084c65
commit 3cee955
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# ClashKing Assets | ||
--- | ||
|
||
## Features/Stack | ||
|
||
- **FastAPI**: Used to serve the files & assets | ||
|
||
- **Image Handling (PIL)**: Supports JPEG, PNG, & WebP and can convert between them | ||
|
||
- **Cloudflare CDN**: Caches assets for latency & availability | ||
|
||
- **Cache-Control**: `Cache-Control` headers, with a default expiration time of 30 days. | ||
|
||
--- | ||
|
||
- **GET `/{file_path:path}`** | ||
|
||
Serve an image file, converting it to the appropriate format if necessary. Applies `Cache-Control` headers to ensure efficient caching. | ||
|
||
--- | ||
|
||
## Contribution | ||
|
||
Contributions are welcome! Please fork the repository and submit a pull request. Ensure that you adhere to the coding standards and provide clear documentation for any new features. | ||
|
||
--- | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. | ||
|
||
--- | ||
|
||
## Contact | ||
|
||
For any questions or support, please open an issue in the GitHub repository or contact us at [email protected]. |