回答編集履歴
4
調整
test
CHANGED
@@ -28,6 +28,6 @@
|
|
28
28
|
|
29
29
|
```PHP
|
30
30
|
|
31
|
-
header('Location:x.php?result=ok&nocache='.urlencode(microtime()),false);
|
31
|
+
header('Location:../test/index_test.php?result=ok&nocache='.urlencode(microtime()),false);
|
32
32
|
|
33
33
|
```
|
3
chousei
test
CHANGED
@@ -21,3 +21,13 @@
|
|
21
21
|
</form>
|
22
22
|
|
23
23
|
```
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
- Query2.php
|
28
|
+
|
29
|
+
```PHP
|
30
|
+
|
31
|
+
header('Location:x.php?result=ok&nocache='.urlencode(microtime()),false);
|
32
|
+
|
33
|
+
```
|
2
調整
test
CHANGED
@@ -8,4 +8,16 @@
|
|
8
8
|
|
9
9
|
getのキャッシュを防ぐためには、getのパラメータに任意のユニーク値をjsで与えることです
|
10
10
|
|
11
|
+
|
12
|
+
|
13
|
+
```PHP
|
14
|
+
|
15
|
+
<form>
|
16
|
+
|
17
|
+
<input type="hidden" name="nocache" value="<?= microtime();?>">
|
18
|
+
|
19
|
+
<input type="submit" value="send">
|
20
|
+
|
11
|
-
|
21
|
+
</form>
|
22
|
+
|
23
|
+
```
|
1
キャッシュ対策
test
CHANGED
@@ -1,3 +1,11 @@
|
|
1
1
|
index_test.phpからQuery2.php を読み込んで条件によってindex_test.phpに飛ばすと
|
2
2
|
|
3
3
|
ループする可能性はないですか?
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
# 追記
|
8
|
+
|
9
|
+
getのキャッシュを防ぐためには、getのパラメータに任意のユニーク値をjsで与えることです
|
10
|
+
|
11
|
+
たとえば、その時点の日付+時間でもよいでしょう
|