You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "chrissber (via GitHub)" <gi...@apache.org> on 2025/10/01 14:17:35 UTC

[I] CacheManager caches HTTP Get results in case of existing etags and CacheManager.useExpires==true [jmeter]

chrissber opened a new issue, #6507:
URL: https://github.com/apache/jmeter/issues/6507

   ### Expected behavior
   
   In case of a HTTP GET request with an existing ETag in the server  response http header I would expect:
   - that another HTTP GET request to the same URL and with identical parameters would be send to the server with a corresponding If-None-Match=<eTag> in the request http header.
   - in other words: that jmeter handle this sampler exactly in the same manner as it would do in the case that no HTTP CacheManager is active.
   
   ### Actual behavior
   
   if the CacheManager is configured with flag useExpires=true the second request is suppressed because the CacheEntry element
   
   get a expiredDate `System.currentTimeMillis() + ONE_YEAR_MS`
   
   [cacheManagerUseExpires.log](https://github.com/user-attachments/files/22642213/cacheManagerUseExpires.log)
   
   ### Steps to reproduce the problem
   
   copy the  attached file etag.txt to file etag.jmx and open it in jmeter
   
   1. start the HTTP Mirror Server 
   2. execute the script
   3. uncheck the checkbox _Use Cache Control/Expires header when processing GET requests_ in HTTP CacheManager GUI
   4. start test again and check different behaviour between the two testruns
   
   [etag.txt](https://github.com/user-attachments/files/22642450/etag.txt)
   
   ### JMeter Version
   
   5.6.3
   
   ### Java Version
   
   openjdk version "17.0.8" 2023-07-18 LTS
   
   ### OS Version
   
   Microsoft Windows [Version 10.0.22631.5909]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] CacheManager suppresses necessary server calls in case of existing etags and CacheManager.useExpires is true [jmeter]

Posted by "FSchumacher (via GitHub)" <gi...@apache.org>.
FSchumacher commented on issue #6507:
URL: https://github.com/apache/jmeter/issues/6507#issuecomment-4287530551

   You can try to solve this. I would first try to find a root cause and describe the findings here (or on the developers mailing list). If the fix is more than a few lines, you should probably first make a plan and post it here (or on the developers mailing list). That could prevent you from running in the wrong direction.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] CacheManager suppresses necessary server calls in case of existing etags and CacheManager.useExpires is true [jmeter]

Posted by "aviralgarg05 (via GitHub)" <gi...@apache.org>.
aviralgarg05 commented on issue #6507:
URL: https://github.com/apache/jmeter/issues/6507#issuecomment-4213418066

   Hi I would like to solve this issue if someone could assign me


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org