Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Added an ETag to the /style.css page, so it benefits from the far-future expiry stuff on this branch. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | etag-always |
| Files: | files | file ages | folders |
| SHA3-256: |
80097abc82fb8cca66b8c6ce84025b3b |
| User & Date: | wyoung 2020-08-04 00:48:07.890 |
Context
|
2020-08-06
| ||
| 20:31 | Improved ETags caching information in replies, to help browser avoid unnecessary HTTP requests. ... (check-in: ec5a063bdc user: drh tags: trunk) | |
|
2020-08-04
| ||
| 00:48 | Added an ETag to the /style.css page, so it benefits from the far-future expiry stuff on this branch. ... (Closed-Leaf check-in: 80097abc82 user: wyoung tags: etag-always) | |
| 00:40 | Changed the default ETag expire age from 1 day to 10 years. See included comment for defense. ... (check-in: af848dce95 user: wyoung tags: etag-always) | |
Changes
Changes to src/style.c.
| ︙ | ︙ | |||
1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 |
*/
void page_style_css(void){
Blob css = empty_blob;
int i;
const char * zDefaults;
cgi_set_content_type("text/css");
/* Emit all default rules... */
zDefaults = (const char*)builtin_file("default.css", &i);
blob_append(&css, zDefaults, i);
/* Page-specific CSS, if any... */
page_style_css_append_page_style(&css);
blob_append(&css,
"\n/***********************************************************\n"
| > | 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 |
*/
void page_style_css(void){
Blob css = empty_blob;
int i;
const char * zDefaults;
cgi_set_content_type("text/css");
etag_check(0, 0);
/* Emit all default rules... */
zDefaults = (const char*)builtin_file("default.css", &i);
blob_append(&css, zDefaults, i);
/* Page-specific CSS, if any... */
page_style_css_append_page_style(&css);
blob_append(&css,
"\n/***********************************************************\n"
|
| ︙ | ︙ |