Fossil SCM
Disable the ETAG cache for the /draftN pages so that caching does not interfere with preview.
Commit
03643a632c27788f7c740f614ad3bfb00bcba1b03b4844d69002e86fbddc009b
Parent
3af6e7ceb442316…
1 file changed
+1
+1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -1799,10 +1799,11 @@ | ||
| 1799 | 1799 | if( g.zTop ) g.zTop = mprintf("%s/draft%d", g.zTop, iSkin); |
| 1800 | 1800 | if( g.zBaseURL ) g.zBaseURL = mprintf("%s/draft%d", g.zBaseURL, iSkin); |
| 1801 | 1801 | zPathInfo += 7; |
| 1802 | 1802 | cgi_replace_parameter("PATH_INFO", zPathInfo); |
| 1803 | 1803 | cgi_replace_parameter("SCRIPT_NAME", zNewScript); |
| 1804 | + etag_cancel(); | |
| 1804 | 1805 | } |
| 1805 | 1806 | |
| 1806 | 1807 | /* If the content type is application/x-fossil or |
| 1807 | 1808 | ** application/x-fossil-debug, then a sync/push/pull/clone is |
| 1808 | 1809 | ** desired, so default the PATH_INFO to /xfer |
| 1809 | 1810 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1799,10 +1799,11 @@ | |
| 1799 | if( g.zTop ) g.zTop = mprintf("%s/draft%d", g.zTop, iSkin); |
| 1800 | if( g.zBaseURL ) g.zBaseURL = mprintf("%s/draft%d", g.zBaseURL, iSkin); |
| 1801 | zPathInfo += 7; |
| 1802 | cgi_replace_parameter("PATH_INFO", zPathInfo); |
| 1803 | cgi_replace_parameter("SCRIPT_NAME", zNewScript); |
| 1804 | } |
| 1805 | |
| 1806 | /* If the content type is application/x-fossil or |
| 1807 | ** application/x-fossil-debug, then a sync/push/pull/clone is |
| 1808 | ** desired, so default the PATH_INFO to /xfer |
| 1809 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -1799,10 +1799,11 @@ | |
| 1799 | if( g.zTop ) g.zTop = mprintf("%s/draft%d", g.zTop, iSkin); |
| 1800 | if( g.zBaseURL ) g.zBaseURL = mprintf("%s/draft%d", g.zBaseURL, iSkin); |
| 1801 | zPathInfo += 7; |
| 1802 | cgi_replace_parameter("PATH_INFO", zPathInfo); |
| 1803 | cgi_replace_parameter("SCRIPT_NAME", zNewScript); |
| 1804 | etag_cancel(); |
| 1805 | } |
| 1806 | |
| 1807 | /* If the content type is application/x-fossil or |
| 1808 | ** application/x-fossil-debug, then a sync/push/pull/clone is |
| 1809 | ** desired, so default the PATH_INFO to /xfer |
| 1810 |