December 29, 2014 07:42AM
Добрый день!

Для определенной задачи требуется сделать кеширование post запросов, но никак не получается.


Конфиг :

proxy_cache_methods POST; # GET HEAD
proxy_cache_key "$uri|$request_body";
client_max_body_size 10m; # 413
expires 24h;


Тыкаем в браузер первый раз:

10.10.10.10 - [29/Dec/2014:17:20:26 +0500] 200 "POST /sd/admin/dispatch HTTP/1.1" 7|0|31|http://localhost/sd/admin/|0B5EEF49472D45E026B0F3F47167FB96|net.customware.gwt.dispatch.client.standard.StandardDispatchService|execute|net.customware.gwt.dispatch.shared.Action|ru.naumen.core.shared.dispatch.GetDtObjectListAction/3060214423|ru.naumen.core.shared.criteria.DtoCriteria/300364404|java.lang.Boolean/476441737|ru.naumen.metainfo.shared.ClassFqn/3609641243|category|java.lang.Integer/3438268394|java.util.LinkedHashMap/3008245022|java.lang.String/2004016611|title|ru.naumen.core.shared.criteria.Order/3649447375|ru.naumen.core.shared.criteria.DtoProperties/1685177594||java.util.HashSet/3273092938|color|code|folder|removed|removalDate|parent|position|icon|java.util.HashMap/1797211028|java.util.ArrayList/4159755760|mappingContextCutTextStrategy|mappingContextEmulateReferencesStrategy|mappingContextCutImagesStrategy|1|2|3|4|1|5|6|1|0|7|0|8|0|0|9|10|11|1000|0|0|0|12|0|1|13|14|15|1|0|14|16|17|18|9|-7|13|19|13|20|13|21|13|22|13|23|13|24|13|25|13|26|27|1|-16|16|24|18|1|-14|27|0|0|1|0|0|28|3|13|29|13|30|13|31|0| 540 "http://localhost/sd/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-" "200" "10.10.10.11:10080"


Тыкаем второй раз:

10.10.10.10 - [29/Dec/2014:17:21:17 +0500] 200 "POST /sd/admin/dispatch HTTP/1.1" 7|0|31|http://localhost/sd/admin/|0B5EEF49472D45E026B0F3F47167FB96|net.customware.gwt.dispatch.client.standard.StandardDispatchService|execute|net.customware.gwt.dispatch.shared.Action|ru.local.core.shared.dispatch.GetDtObjectListAction/3060214423|ru.local.core.shared.criteria.DtoCriteria/300364404|java.lang.Boolean/476441737|ru.local.metainfo.shared.ClassFqn/3609641243|category|java.lang.Integer/3438268394|java.util.LinkedHashMap/3008245022|java.lang.String/2004016611|title|ru.local.core.shared.criteria.Order/3649447375|ru.local.core.shared.criteria.DtoProperties/1685177594||java.util.HashSet/3273092938|color|code|folder|removed|removalDate|parent|position|icon|java.util.HashMap/1797211028|java.util.ArrayList/4159755760|mappingContextCutTextStrategy|mappingContextEmulateReferencesStrategy|mappingContextCutImagesStrategy|1|2|3|4|1|5|6|1|0|7|0|8|0|0|9|10|11|1000|0|0|0|12|0|1|13|14|15|1|0|14|16|17|18|9|-7|13|19|13|20|13|21|13|22|13|23|13|24|13|25|13|26|27|1|-16|16|24|18|1|-14|27|0|0|1|0|0|28|3|13|29|13|30|13|31|0| 540 "http://localhost/sd/admin/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36" "-" "200" "10.10.10.11:10080"


В access логе томката видны оба раза пост запросы. Подскажите, в чем может быть проблема?
Subject Author Posted

Не кешируются post запросы

Denis P. December 29, 2014 07:42AM

Re: Не кешируются post запросы

Andrey Kopeyko December 29, 2014 10:10AM

Re: Не кешируются post запросы

Maxim Dounin December 29, 2014 11:16AM

Re: Не кешируются post запросы

Maxim Dounin December 29, 2014 11:10AM

Re: Не кешируются post запросы

Denis P. December 30, 2014 04:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready