|
|
|
script not cached
|
|||
|---|---|---|---|
|
#18+
Подгружаю форму аяксом ($.ajax GET), в форме есть такая строчка Код: html 1. когда смотрю какие запросы генерятся к серверу вижу такое: http://localhost:57233/Scripts/bootstrap-select.js?_=1401098828568 не понимаю зачем он добавляет этот id? Из-за этого этот скрипт каждый раз качается с сервера. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.05.2014, 14:17 |
|
||
|
script not cached
|
|||
|---|---|---|---|
|
#18+
тут jquerycache (default: true, false for dataType 'script' and 'jsonp') Type: Boolean If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.05.2014, 14:49 |
|
||
|
script not cached
|
|||
|---|---|---|---|
|
#18+
А как сказать теперь, что скрипты внутри формы нужно кэшировать? Вот такой у меня запрос: Код: javascript 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. Форму саму он кэширует, а вот скрипт внутри качает каждый раз заново. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.05.2014, 15:12 |
|
||
|
|

start [/forum/topic.php?fid=22&msg=38652124&tid=1447048]: |
0ms |
get settings: |
7ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
144ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
| others: | 215ms |
| total: | 437ms |

| 0 / 0 |
