Age | Commit message (Collapse) | Author |
|
|
|
This PR enables admins to disable/enable CORS and GZIP from within the admin CMS configuration page. Both are enabled by default.
Note: currently, the GZIP implementation is 100% on the fly, for every qualifying API endpoint request. This could add significant CPU usage, but dramatically decreases bandwidth. Will be considering other better implementations, but for now YMMV.
Possible optimizations:
- pooling gzip Writers vs. creating a new one for each response
- caching gzipped responses (in memory? on disk?)
- enforcing size threshold (only gzip content larger than N bytes)
|
|
|
|
|
|
how they are registered by the system
|
|
|
|
|
|
|
|
files uploaded
|
|
|
|
contents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from original repo
|
|
|
|
handlers/helper upload func
|
|
grouped files
|
|
first-use, pulling out some handlers into separate file for readability and navigation
|
|
|
|
non-standard characters, removing base64 encoding of content
|
|
|
|
gorilla/schema struct decoding. these values are normalized for db insertion
|
|
|