how to configure spring MVC - view resolver to get .manifest for HTML 5 offline cache
Hello,
I am trying to HTML 5 offline caching with spring. But i am not getting success for resolve the .manifiest file URL.
I used below resolver to try to get but didnt get success.
Code:
<bean id="viewres3"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix">
<value>/WEB-INF/views/mb/</value>
</property>
<property name="suffix">
<value>.manifest</value>
</property>
<property name="order"><value>1</value></property>
</bean>
In web.xml also i have added the manifest mime mapping
Code:
<mime-mapping>
<extension>manifest</extension>
<mime-type>text/cache-manifest</mime-type>
</mime-mapping>
below is web controller request mapping method which try to resolve
Code:
@RequestMapping("/offm")
public String offMainifest() {
return "/mob/offui";
}
Below code HTML 5 snippet. in html tag there attribute is namely "manifest" which requires .manifest file path as value.
Code:
<!DOCTYPE html>
<html lang="en" manifest="offui.manifest">
// your html document
</html>
Please help me if somebody knows then for how to resolve .manifest file view?
Because for HTML 5 offline caching i must require . manifest file.
Regards
Abhijit.