Fossil SCM

Disable the ETAG cache for the /draftN pages so that caching does not interfere with preview.

drh 2020-09-06 14:37 trunk
Commit 03643a632c27788f7c740f614ad3bfb00bcba1b03b4844d69002e86fbddc009b
1 file changed +1
+1
--- src/main.c
+++ src/main.c
@@ -1799,10 +1799,11 @@
17991799
if( g.zTop ) g.zTop = mprintf("%s/draft%d", g.zTop, iSkin);
18001800
if( g.zBaseURL ) g.zBaseURL = mprintf("%s/draft%d", g.zBaseURL, iSkin);
18011801
zPathInfo += 7;
18021802
cgi_replace_parameter("PATH_INFO", zPathInfo);
18031803
cgi_replace_parameter("SCRIPT_NAME", zNewScript);
1804
+ etag_cancel();
18041805
}
18051806
18061807
/* If the content type is application/x-fossil or
18071808
** application/x-fossil-debug, then a sync/push/pull/clone is
18081809
** desired, so default the PATH_INFO to /xfer
18091810
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button