java


Cache Control not Working in Firefox


I want to set expire header for each resource files. I'm tried with resource mapping cache period.
<resources mapping="/resources/**" location="/WEB-INF/resources/" cache-period="86400"/>
Its working in chrome and safari. But not working in Firefox
Also i'm tried with another way through Filters. As same problem - not working in Firefox.
HttpServletResponse httpResponse = (HttpServletResponse) response;
httpResponse.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
httpResponse.setHeader("Pragma", "no-cache");
httpResponse.setDateHeader("Expires", System.currentTimeMillis() + 604800000L);
chain.doFilter(request, response
Can anyone help me!
I have a similar problem with Lotus Notes and a web form. Firefox just doesn't follow the same rules as everyone else with cache-control.
My solution was to use javascript on the front end to emulate what I was trying to accomplish with cache-control.

Related Links

ExceptionInInitializerError using Cobertura 2.0.3, Java 7, and Ant
Single vs Multi-threaded JMS Producer
Error creating bean Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
Game of Life, method doesnt work
Layout pixels and Canvas pixels different?
How can I make MediaPlayer sound to be continued? Not looping
Which data structure to use to store millions of objects in multithreading environment ( Scalability and performace )?
Is there a way to turn off momentum (inertia) scrolling?
How to use Sharedpreference to store an int?
Spring MVC and 302 Status
java classes leaving and getting input [closed]
Objects not reallocating
Access instance variables from default method in inner interface
Hibernate does not log stacktrace
Android mediaplayer won't load Uri with path /documents/audio:1159
Get info about all running processes [closed]

Categories

HOME
ibm-bluemix
variables
magnific-popup
fluentd
kde
raspberry-pi
relayjs
sd-card
react-router
read-eval-print-loop
rsyslog
google-docs
malloc
amazon-ecs
webpack-2
enterprise-library-5
flyway4
synchronization
iggrid
google-translate
nstableview
n-gram
task
uitypeeditor
predix
clickonce
opencover
realex-payments-api
microsoft-r
pepper
apache-commons-io
internet-explorer-9
virtualdub
pingfederate
filezilla
ping
google-cloud-nl
socialengine
binary-data
xquery-3.0
phpfreechat
mozilla
automake
az-application-insights
ensembles
mapzen
fakeiteasy
arena-simulation
thin
xml-documentation
filepicker
jquery-validate
clean-architecture
dropbox-php
veracode
directory-structure
synchronous
setuptools
actionbardrawertoggle
packagist
rvest
ipconfig
energy
sdhc
endeca-workbench
fluid-dynamics
system32
angular-local-storage
apache-commons-net
bigbluebutton
angularjs-ng-click
seaside
undefined-reference
picturefill
android-2.2-froyo
algebraic-data-types
viadeo
web2py-modules
twrequest
onsubmit
parametric-equations
windows-phone-7.1.1
adk
libc++
gnustep
nsobject
external-accessory
vdsp
xmlspy
sql-server-profiler
nintendo-ds
brewmp
memory-size
kdbg
procedural-music
spec#

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App