SpringFramework_3010

Last modified by superadmin on 2018-01-12 20:20

Back to Item Set

<p/>
<!-- START TestItem -->
<p/>
<div class="TestItem">
<div class="TestItemQuestion">3010 Question:\

What is the behaviour of applying <tt>org.springframework.web.filter.ShallowEtagHeaderFilter</tt> to a request?

</div>

Select 1 correct answer(s)!

<p/>
<ol class="MTestItemChoices" type='A'>
<li>

Filter generates ETag value based on MD5 hash over a rendered content and adds this value as a response header. Then, compares obtained hash with "If-None-Match" header value provided by a client. If values match, returns 304 status code.

</li>
<li>

Filter analyzes ETag value provided by a client in "If-None-Match" header, checks if there is a page version in a cache stored under a key matching provided ETag value. If there is such page, returns it to a client. If not, then renders a new page, stores it in a cache under a key generated as a MD5 hash over a content, and returns a page with ETag header to a client. 

</li>
<li>

If ETag header is present in a request, then filter generates a value based on MD5 hash over a rendered content and compares it to a ETag value provided by a client. If values match, sets "If-None-Match" response header value to "false" and returns 304 status code.

</li>
<li>

Filter checks if "If-None-Match" header value matches a MD5 hash over a rendered content. If values do not match, returns 403 status code.

</li>
</ol>
<p/>
<div class="TestItemSkill"><!--$skillid>Skill: $skilltitle</div>
<p/>
</div>
<!-- END MTestItem -->
<p/>
<p/>


{{/velocity}}

Tags:
Created by Alina Vasiljeva on 2013-01-13 18:12
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation